/* BIGOM ERP shared authenticated UI layer. */

.app-authenticated {
    margin: 0;
    padding: 0;
    background: #f1f5f9;
    color: #172033;
}

.app-authenticated > .container,
.app-authenticated > main.container {
    width: min(1320px, calc(100% - 40px));
    max-width: 1320px;
    margin: 30px auto 56px;
    padding: 28px;
    box-sizing: border-box;
    border: 1px solid #e1e7ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 3px 16px rgb(15 23 42 / 4%);
}

.app-authenticated h1 {
    margin-top: 0;
    color: #0f172a;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.app-authenticated h2 {
    color: #172033;
    letter-spacing: -.015em;
}

.app-authenticated h3 {
    color: #334155;
}

.app-authenticated .request-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.app-authenticated .request-title-block {
    min-width: 0;
}

.app-authenticated .request-number-big {
    margin-bottom: 7px;
    color: #64748b;
    font-size: 15px;
    font-weight: 800;
}

.app-authenticated .request-main-title {
    margin: 0;
}

.app-authenticated .btn {
    min-height: 40px;
    box-sizing: border-box;
    border-radius: 10px;
    background: #1e293b;
    color: #fff;
    font-weight: 800;
    line-height: 20px;
}

.app-authenticated .btn:hover {
    background: #0f172a;
    box-shadow: 0 4px 12px rgb(15 23 42 / 14%);
    transform: translateY(-1px);
}

.app-authenticated .btn-primary {
    background: #2563eb;
}

.app-authenticated .btn-primary:hover {
    background: #1d4ed8;
}

.app-authenticated .btn-light {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #172033;
}

.app-authenticated .btn-light:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.app-authenticated .cabinet-source-button.is-active {
    border-color: #fbbf24;
    background: #fffbeb;
    color: #b45309;
}

.app-authenticated .cabinet-source-button.is-active:hover {
    border-color: #f59e0b;
    background: #fef3c7;
    color: #92400e;
}

.app-authenticated button.btn:disabled,
.app-authenticated .btn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: .6;
    box-shadow: none;
    transform: none;
}

.app-authenticated input,
.app-authenticated select,
.app-authenticated textarea {
    min-height: 42px;
    border-color: #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #172033;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.app-authenticated textarea {
    min-height: 120px;
}

.app-authenticated input:focus,
.app-authenticated select:focus,
.app-authenticated textarea:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgb(37 99 235 / 13%);
}

.app-authenticated .form-section,
.app-authenticated .form-card,
.app-authenticated .action-card,
.app-authenticated .request-meta,
.app-authenticated .info-card {
    border-color: #dbe3ed;
    border-radius: 14px;
    background: #f8fafc;
    box-shadow: none;
}

.app-authenticated .form-section {
    margin-bottom: 18px;
}

.app-authenticated .form-section > h2:first-child,
.app-authenticated .form-card > h2:first-child {
    margin-top: 0;
}

.app-authenticated .message {
    border-color: #dbe3ed;
    border-radius: 11px;
    background: #f8fafc;
    color: #334155;
}

.app-authenticated .message.success,
.app-authenticated .success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.app-authenticated .alert-danger {
    border-color: #fecaca;
    background: #fff1f2;
    color: #991b1b;
}

.app-authenticated .dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.app-authenticated .table-wrapper,
.app-authenticated .users-table-wrapper,
.app-authenticated .security-log-wrapper {
    max-width: 100%;
    overflow: auto;
    border: 1px solid #dbe3ed;
    border-radius: 13px;
    background: #fff;
    scrollbar-gutter: stable;
}

.app-authenticated .table-wrapper table,
.app-authenticated .users-table-wrapper table,
.app-authenticated .security-log-wrapper table {
    margin: 0;
}

.app-authenticated table th {
    padding: 13px 12px;
    border-color: #334155;
    background: #111c2f;
    font-size: 13px;
    letter-spacing: .005em;
}

.app-authenticated table td {
    padding: 12px;
    border-color: #dbe3ed;
    color: #273449;
    vertical-align: middle;
}

.app-authenticated table tbody tr:nth-child(even) td {
    background: #fbfcfe;
}

.app-authenticated table tbody tr:hover td {
    background: #f1f6fd;
}

.app-authenticated .category-badge,
.app-authenticated .status,
.app-authenticated [class^="status-"],
.app-authenticated [class*=" status-"] {
    border-radius: 999px;
}

.app-authenticated .search-panel,
.app-authenticated .personnel-browser-search,
.app-authenticated .filters-card {
    border-color: #dbe3ed;
    border-radius: 14px;
    background: #f8fafc;
}

.app-authenticated .tabs {
    scrollbar-width: thin;
}

.app-authenticated .tabs a {
    border-color: #d6dde8;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
}

.app-authenticated .tabs a:hover {
    border-color: #aeb9c8;
    background: #eef2f7;
}

.app-authenticated .tabs a.active {
    border-color: #0f172a;
    background: #0f172a;
    color: #fff;
}

.app-authenticated hr {
    height: 1px;
    margin: 26px 0;
    border: 0;
    background: #e2e8f0;
}

.app-authenticated .form-hint {
    color: #64748b;
    line-height: 1.45;
}

.app-authenticated .settings-unit-card {
    padding: 22px 24px;
}

.app-authenticated .settings-unit-card > h2 {
    margin-bottom: 18px;
    font-size: 24px;
}

.app-authenticated .settings-unit-form {
    display: grid;
    grid-template-columns: 1fr 1.45fr .95fr 1fr;
    gap: 12px;
    align-items: center;
}

.app-authenticated .settings-unit-form > input,
.app-authenticated .settings-unit-form > select {
    width: 100%;
    min-width: 0;
    max-width: none;
}

.app-authenticated .settings-unit-form .checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
    grid-column: 1 / 4;
}

.app-authenticated .settings-unit-form .checkbox-row input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    min-height: 18px;
    height: 18px;
    margin: 0;
}

.app-authenticated .settings-unit-form > .btn {
    width: auto;
    margin: 0;
    justify-self: end;
    white-space: nowrap;
}

.app-authenticated .bigom-empty-state,
.app-authenticated .personnel-search-message {
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
}

@media (max-width: 1100px) {
    .app-authenticated .settings-unit-form {
        grid-template-columns: 1fr 1fr;
    }

    .app-authenticated .settings-unit-form .checkbox-row {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .app-authenticated > .container,
    .app-authenticated > main.container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 18px !important;
        border: 0;
        border-radius: 0 !important;
        box-shadow: none;
    }

    .app-authenticated .request-top {
        display: grid;
        gap: 15px;
    }

    .app-authenticated .request-top .btn {
        width: fit-content;
    }

    .app-authenticated h1,
    .app-authenticated .request-main-title {
        font-size: 30px !important;
    }

    .app-authenticated .form-section,
    .app-authenticated .form-card,
    .app-authenticated .action-card {
        padding: 16px !important;
    }

    .app-authenticated .settings-unit-form {
        grid-template-columns: 1fr;
    }

    .app-authenticated .settings-unit-form .checkbox-row {
        grid-column: auto;
        white-space: normal;
    }

    .app-authenticated .settings-unit-form > .btn {
        width: 100%;
        justify-self: stretch;
    }
}

@media print {
    .app-authenticated {
        background: #fff;
    }

    .app-authenticated > .container,
    .app-authenticated > main.container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
    }
}
.app-navigation .nav-count{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:5px;padding:0 5px;border-radius:999px;background:#2563eb;color:#fff;font-size:11px;font-weight:900;line-height:1}.app-navigation a.active .nav-count{background:#0f172a}
