/* QuantEngine Admin UI - Douzone ERP Accounting UX/AX Standard Theme */

:root {
    /* Douzone Trademark Palette */
    --douzone-navy: #2C3E50;
    --douzone-slate: #34495E;
    --douzone-bg: #F4F6F9;
    --douzone-card-bg: #FFFFFF;
    --douzone-border: #CBD5E1;
    --douzone-input-bg: #FFFFFF;
    --douzone-readonly-bg: #ECF0F1;
    
    /* Douzone Status Chips Palette */
    --status-pass: #2ECC71;
    --status-pass-bg: #E8F8F5;
    --status-pass-text: #117864;
    
    --status-warning: #F39C12;
    --status-warning-bg: #FEF9E7;
    --status-warning-text: #B9770E;
    
    --status-error: #E74C3C;
    --status-error-bg: #FDEDEC;
    --status-error-text: #922B21;

    /* Douzone Keyboard Focus Highlight */
    --focus-highlight: #2980B9;
    --focus-box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.25);
}

/* Global Reset & Font System */
body {
    background-color: var(--douzone-bg);
    color: var(--douzone-navy);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
}

/* Douzone High-Density Form Inputs */
.form-control, .form-select {
    border: 1px solid var(--douzone-border);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
    color: var(--douzone-navy);
    background-color: var(--douzone-input-bg);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: var(--focus-highlight);
    box-shadow: var(--focus-box-shadow);
    outline: none;
}

.form-control[readonly], .form-control:disabled {
    background-color: var(--douzone-readonly-bg);
    color: #7F8C8D;
}

/* Douzone 3-Section Layout Structure */
.douzone-layout-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Top Toolbar & Filter Header Bar */
.douzone-header-toolbar {
    background-color: var(--douzone-navy);
    color: #FFFFFF;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #1A252F;
}

.douzone-header-toolbar .btn-douzone-action {
    background-color: #34495E;
    color: #FFFFFF;
    border: 1px solid #4A6572;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    margin-left: 4px;
}

.douzone-header-toolbar .btn-douzone-action:hover {
    background-color: #415B76;
    border-color: #5D7D9A;
}

/* Center High-Density Data Grid Area */
.douzone-grid-body {
    flex: 1;
    overflow: auto;
    padding: 12px;
}

/* Douzone High-Density Table */
.douzone-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #FFFFFF;
    border: 1px solid var(--douzone-border);
}

.douzone-table thead th {
    background-color: #E2E8F0;
    color: var(--douzone-navy);
    font-weight: 700;
    padding: 8px 10px;
    border: 1px solid var(--douzone-border);
    text-align: left;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.douzone-table tbody td {
    padding: 6px 10px;
    border: 1px solid var(--douzone-border);
    white-space: nowrap;
}

.douzone-table tbody tr:hover {
    background-color: #EDF2F7;
}

.douzone-table tbody tr.selected {
    background-color: #D6E4FF;
}

/* Douzone Status Chips Policy */
.chip-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.chip-status-pass {
    background-color: var(--status-pass-bg);
    color: var(--status-pass-text);
    border: 1px solid var(--status-pass);
}

.chip-status-warning {
    background-color: var(--status-warning-bg);
    color: var(--status-warning-text);
    border: 1px solid var(--status-warning);
}

.chip-status-error {
    background-color: var(--status-error-bg);
    color: var(--status-error-text);
    border: 1px solid var(--status-error);
}

/* Bottom Hotkey Guidance Footer Bar */
.douzone-summary-footer {
    background-color: var(--douzone-slate);
    color: #ECF0F1;
    padding: 6px 16px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #2C3E50;
}

.hotkey-badge {
    background-color: #2C3E50;
    color: #F1C40F;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    font-family: monospace;
    margin-right: 4px;
}
