/* Styles pour la page Corner Management */

.corner-management-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #FCF1E6;
}

/* Barre de navigation supérieure */
.corner-navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 80px;
}

.navbar-left {
    display: flex;
    gap: 0.5rem;
}

.navbar-left .btn {
    border-color: rgba(255,255,255,0.3);
    color: white;
    background-color: transparent;
    transition: all 0.3s ease;
}

.navbar-left .btn:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: white;
}

.navbar-center {
    text-align: center;
}

.corner-info h4 {
    margin: 0;
    font-weight: 600;
    color: white;
}

.corner-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.caisse-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background-color: rgba(255,255,255,0.1);
    min-width: 120px;
}

.caisse-status i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.caisse-status span {
    font-weight: 600;
    font-size: 0.9rem;
}

.caisse-status small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.caisse-ouverte {
    background-color: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.caisse-fermee {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Zone principale */
.corner-main-content {
    flex: 1;
    display: flex;
    gap: 1rem;
    padding: 4px;
    overflow: hidden;
}

/* Panneau de gauche */
.corner-left-panel {
    flex: 1;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FCF1E6;
}

.panel-header h5 {
    margin: 0;
    color: #495057;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-buttons .btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
}

.articles-grid {
    flex: 1;
    padding: 1rem;
    overflow: auto;
}

/* Section des totaux */
.totaux-section {
    padding: 1rem 1.5rem;
    border-top: 2px solid #e9ecef;
    background-color: #FCF1E6;
}

.total-row, .taxe-row, .articles-count-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.total-row {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

.total-value {
    color: #28a745;
    font-weight: 700;
}

.taxe-label, .count-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.taxe-value, .count-value {
    color: #495057;
    font-weight: 500;
}

/* Panneau de droite */
.corner-right-panel {
    flex: 1;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.articles-navigation {
    flex: 1;
    padding: 4px;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
    color: #6c757d;
}

.placeholder-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.placeholder-content p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .corner-main-content {
        flex-direction: column;
    }
    
    .corner-left-panel,
    .corner-right-panel {
        flex: none;
        height: 50vh;
    }
}

@media (max-width: 768px) {
    .corner-navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .navbar-left {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .navbar-center {
        order: -1;
    }
    
    .corner-main-content {
        padding: 4px;
    }
    
    .action-buttons {
        flex-wrap: wrap;
    }
}

/* Animations */
.corner-navbar .btn {
    transition: all 0.3s ease;
}

.corner-navbar .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.panel-header .btn {
    transition: all 0.2s ease;
}

.panel-header .btn:hover {
    transform: scale(1.05);
}

/* Styles pour la grille Telerik */
.articles-grid .k-grid {
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.articles-grid .k-grid-header {
    background-color: #FCF1E6;
    border-bottom: 2px solid #dee2e6;
}

.articles-grid .k-grid-header .k-header {
    background-color: transparent;
    border: none;
    font-weight: 600;
    color: #495057;
    padding: 0.75rem;
}

.articles-grid .k-grid-content {
    border: none;
}

.articles-grid .k-grid-content .k-table-row {
    transition: background-color 0.2s ease;
}

.articles-grid .k-grid-content .k-table-row:hover {
    background-color: #FCF1E6;
}

.articles-grid .k-grid-content .k-table-row.k-selected {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.articles-grid .k-grid-content .k-table-cell {
    border: none;
    padding: 0.75rem;
    vertical-align: middle;
}
