/* =========================================================
   SIGEC - ADMIN PANEL
   ORN Telecom
   ========================================================= */

:root {
    --admin-bg: #f4f7fb;
    --admin-sidebar: #001c31;
    --admin-sidebar-2: #002943;
    --admin-primary: #ff6814;
    --admin-primary-hover: #e9540a;

    --admin-text: #17243a;
    --admin-muted: #6b778c;
    --admin-border: #e2e8f0;
    --admin-white: #ffffff;

    --admin-green: #16a34a;
    --admin-red: #dc2626;
    --admin-blue: #2563eb;
    --admin-orange: #f97316;
}

/* ---------------------------------------------------------
   RESET DO ADMIN
   --------------------------------------------------------- */

body {
    margin: 0;
    min-height: 100vh;
    background: var(--admin-bg);
    color: var(--admin-text);
}

.admin-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}


/* ---------------------------------------------------------
   SIDEBAR
   --------------------------------------------------------- */

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;

    display: flex;
    width: 265px;
    height: 100vh;
    flex-direction: column;

    color: #fff;
    background: linear-gradient(180deg,
    #001c31 0%,
    #00263d 100%);

    box-shadow: 4px 0 18px rgba(0, 20, 40, .12);
}


/* ---------------------------------------------------------
   LOGO
   --------------------------------------------------------- */

.sidebar-brand {
    display: flex;
    height: 86px;
    align-items: center;
    justify-content: center;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-brand img {
    display: block;
    max-width: 155px;
    /* max-height: auto; */
    max-height: none;
    object-fit: contain;
}


/* ---------------------------------------------------------
   MENU
   --------------------------------------------------------- */

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 18px 12px;
}

.sidebar-nav::-webkit-scrollbar {
    width: 5px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .15);
    border-radius: 10px;
}

.nav-section-title {
    margin: 20px 12px 8px;

    color: rgba(255, 255, 255, .38);

    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.nav-item {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 13px;
    margin-bottom: 3px;
    padding: 10px 13px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .72);
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nav-item i {
    width: 21px;
    color: rgba(255, 255, 255, .55);
    font-size: 1.08rem;
    text-align: center;
    transition: color .18s ease;
}

.nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
    transform: translateX(2px);
}

.nav-item:hover i {
    color: var(--admin-primary);
}

.nav-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(255, 104, 20, .20), rgba(255, 104, 20, .08));
    box-shadow: inset 3px 0 0 var(--admin-primary);
}

.nav-item.active i {
    color: var(--admin-primary);
}


/* ---------------------------------------------------------
   LOGOUT
   --------------------------------------------------------- */

.admin-sidebar form {
    padding: 14px 12px 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-logout {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: flex-start;
    gap: 13px;
    padding: 10px 13px;
    border: 0;
    border-radius: 8px;
    color: rgba(255, 255, 255, .72);
    background: transparent;
    font-size: .9rem;
    transition: .18s ease;
}

.sidebar-logout i {
    font-size: 1.08rem;
}

.sidebar-logout:hover {
    color: #fff;
    background: rgba(220, 38, 38, .16);
}


/* ---------------------------------------------------------
   ÁREA PRINCIPAL
   --------------------------------------------------------- */

.admin-main {
    display: flex;
    width: calc(100% - 265px);
    min-height: 100vh;
    margin-left: 265px;
    flex-direction: column;
    background: var(--admin-bg);
}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

/*
.admin-header {
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    height: 76px;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: 1px solid var(--admin-border);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
}
*/

.admin-header {
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    height: 76px;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(90deg, #001c31 0%, #002943 100%);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
}

.header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: .88rem;
}

.header-breadcrumb strong {
    color: #fff;
    font-size: .88rem;
    font-weight: 650;
}

.header-breadcrumb span {
    color: rgba(255, 255, 255, .55);
    font-size: .84rem;
}

.header-breadcrumb span:last-child {
    color: rgba(255, 255, 255, .85);
}

.sidebar-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    color: var(--admin-text);
    background: #fff;
    font-size: 1.25rem;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-menu { position: relative; }
.profile-menu-toggle { display: flex; align-items: center; gap: 12px; padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; text-align: left; }
.profile-menu-toggle > .bi-chevron-down { color: rgba(255, 255, 255, .75); font-size: .8rem; transition: transform .18s ease; }
.profile-menu-toggle[aria-expanded="true"] > .bi-chevron-down { transform: rotate(180deg); }
.profile-menu-panel { position: absolute; top: calc(100% + 12px); right: 0; z-index: 1200; width: min(300px, calc(100vw - 24px)); padding: 14px; border: 1px solid var(--admin-border); border-radius: 12px; color: var(--admin-text); background: #fff; box-shadow: 0 16px 40px rgba(15, 35, 60, .2); }
.profile-menu-panel[hidden] { display: none !important; }
.profile-menu-heading { display: flex; align-items: center; gap: 12px; padding: 4px 3px 14px; border-bottom: 1px solid var(--admin-border); color: inherit; text-decoration: none; }
.profile-menu-heading:hover { color: var(--admin-primary); }
.profile-menu-heading .user-avatar { flex: 0 0 42px; width: 42px; height: 42px; }
.profile-menu-heading div { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.profile-menu-heading strong { overflow: hidden; color: var(--admin-text); font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu-heading small { color: var(--admin-muted); font-size: .75rem; }
.profile-menu-heading > .bi-chevron-right { color: #94a3b8; font-size: .85rem; }
.profile-menu-panel form { margin: 0; padding: 8px 0 0; border-top: 1px solid var(--admin-border); }
.profile-menu-logout { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 8px; border: 0; border-radius: 8px; color: #dc2626; background: transparent; cursor: pointer; font: inherit; font-size: .86rem; text-align: left; }
.profile-menu-logout:hover { background: #fff1f2; }
.sidebar-backdrop { display: none; }

.notification-button {
    position: relative;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #506078;
    background: transparent;
    font-size: 1.15rem;
    cursor: pointer;
}

.notification-button:hover {
    background: #f1f5f9;
}

.notification-button span {
    position: absolute;
    top: 1px;
    right: 0;
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: var(--admin-primary);
    font-size: .62rem;
    font-weight: 800;
}

.system-notifications { position: relative; }
.system-notifications-panel { position: absolute; z-index: 1300; top: calc(100% + 10px); right: -8px; width: min(380px, calc(100vw - 24px)); max-height: min(520px, calc(100vh - 100px)); overflow: auto; border: 1px solid var(--theme-border); border-radius: 14px; color: var(--theme-text); background: var(--theme-surface); box-shadow: 0 18px 48px rgba(8, 20, 35, .28); }
.system-notifications-panel[hidden] { display: none !important; }
.system-notifications-panel > header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--theme-border); background: var(--theme-surface); }
.system-notifications-panel > header strong { font-size: .9rem; }
.system-notifications-panel > header button { display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 7px; color: var(--theme-muted); background: transparent; cursor: pointer; }
.system-notifications-panel > header button:hover { color: var(--theme-text); background: var(--theme-hover); }
.system-notifications-list { display: grid; gap: 0; }
.system-notification { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--theme-border); }
.system-notification:last-child { border-bottom: 0; }
.system-notification > i { grid-row: span 5; padding-top: 2px; color: var(--admin-primary); }
.system-notification.is-reports > i { color: #2563eb; }
.system-notification.is-security > i { color: #dc2626; }
.system-notification strong { font-size: .82rem; line-height: 1.35; }
.system-notification p, .system-notifications-empty { margin: 4px 0 0; color: var(--theme-muted); font-size: .75rem; line-height: 1.45; }
.system-notification .system-notification-expiry { margin-top: 7px; }
.system-notification-time { grid-column: 2; margin-top: 6px; color: var(--theme-muted); font-size: .68rem; }
.system-notifications-empty { padding: 18px 16px; text-align: center; }
.system-notification-action { display: inline-flex; width: fit-content; align-items: center; gap: 6px; margin-top: 9px; padding: 7px 10px; border: 1px solid var(--theme-border); border-radius: 8px; color: var(--admin-primary); background: var(--theme-surface-muted); font-size: .75rem; font-weight: 700; text-decoration: none; }
.system-notification-action:hover { color: var(--admin-primary-hover); background: var(--theme-hover); }

.user-avatar {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #ff6814, #ff8a43);
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(255, 104, 20, .25);
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.user-info strong {
    color: #ffffff;
    font-size: .85rem;
}

.user-info small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .65);
    font-size: .72rem;
}

.header-user > .bi-chevron-down {
    color: rgba(255, 255, 255, .75);
    font-size: .8rem;
}


/* ---------------------------------------------------------
   CONTEÚDO
   --------------------------------------------------------- */

.admin-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 32px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.page-heading h1 {
    margin: 0 0 5px;
    color: var(--admin-text);
    font-size: 1.8rem;
    font-weight: 750;
    letter-spacing: -.035em;
}

.page-heading p {
    margin: 0;
    color: var(--admin-muted);
    font-size: .92rem;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-time {
    color: var(--admin-muted);
    font-size: .8rem;
}

.icon-button {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    color: #526176;
    background: #fff;
    transition: .18s ease;
}

.icon-button:hover {
    color: var(--admin-primary);
    border-color: #ffc4a7;
    background: #fff7f2;
}
.refresh-button i { display: inline-block; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.refresh-button:hover i { transform: rotate(360deg); }
@media (prefers-reduced-motion: reduce) {
    .refresh-button i { transition: none; }
}


/* ---------------------------------------------------------
   CARDS / ESTATÍSTICAS
   --------------------------------------------------------- */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    display: flex;
    min-height: 125px;
    align-items: center;
    gap: 17px;
    padding: 22px;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(23, 32, 51, .04);
    transition: transform .18s ease, box-shadow .18s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(23, 32, 51, .08);
}

.stat-icon {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    place-items: center;
    border-radius: 12px;
    font-size: 1.35rem;
}

.stat-icon.blue {
    color: #2563eb;
    background: #eff6ff;
}

.stat-icon.green {
    color: #16a34a;
    background: #f0fdf4;
}

.stat-icon.red {
    color: #dc2626;
    background: #fef2f2;
}

.stat-icon.orange {
    color: #ea580c;
    background: #fff7ed;
}

.stat-card > div:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.stat-card strong {
    margin-bottom: 4px;
    color: var(--admin-text);
    font-size: 1.65rem;
    line-height: 1;
}

.stat-card span {
    color: #445269;
    font-size: .82rem;
    font-weight: 650;
}

.stat-card small {
    margin-top: 4px;
    color: #8a95a6;
    font-size: .7rem;
}


/* ---------------------------------------------------------
   PAINEL
   --------------------------------------------------------- */

.content-panel {
    overflow: hidden;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(23, 32, 51, .04);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 23px 25px;
    border-bottom: 1px solid var(--admin-border);
}

.panel-header > div:first-child {
    min-width: 0;
}

.panel-header h2 {
    margin: 0 0 5px;
    color: var(--admin-text);
    font-size: 1rem;
    font-weight: 750;
}

.panel-header p {
    margin: 0;
    color: var(--admin-muted);
    font-size: .78rem;
}

/* ---------------------------------------------------------
   EMPTY STATE
   --------------------------------------------------------- */

.empty-state {
    display: flex;
    min-height: 300px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 45px 25px;
    text-align: center;
}

.empty-state > i {
    display: grid;
    width: 70px;
    height: 70px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 50%;
    color: var(--admin-primary);
    background: #fff1e9;
    font-size: 1.8rem;
}

.empty-state h3 {
    margin: 0 0 8px;

    color: var(--admin-text);

    font-size: 1rem;
}

.empty-state p {
    max-width: 440px;
    margin: 0 0 20px;
    color: var(--admin-muted);
    font-size: .82rem;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   RESPONSIVO
   --------------------------------------------------------- */

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .sidebar-backdrop:not([hidden]) { position: fixed; inset: 0; z-index: 950; display: block; width: 100%; height: 100%; border: 0; background: rgba(7, 20, 35, .48); }
    body.sidebar-open { overflow: hidden; }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform .25s ease;
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-main {
        width: 100%;
        margin-left: 0;
    }

    .sidebar-toggle {
        display: grid;

        place-items: center;
    }

    .admin-content {
        padding: 25px;
    }
}

@media (max-width: 650px) {
    .admin-header {
        height: 68px;
        padding: 0 18px;
    }

    .user-info,
    .profile-menu-toggle .user-info,
    .profile-menu-toggle > .bi-chevron-down {
        display: none;
    }

    .admin-content {
        padding: 20px 16px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 20px;
    }

    .page-actions {
        width: 100%;
        justify-content: space-between;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .panel-header .button-primary {
        width: 100%;
    }

    .header-breadcrumb {
        gap: 7px;
        font-size: .8rem;
    }

    .header-breadcrumb strong {
        font-size: .8rem;
    }

    .header-breadcrumb span {
        font-size: .76rem;
    }
}

@media (max-width: 420px) {
    .stat-card {
        padding: 17px;
    }

    .stat-icon {
        width: 46px;
        height: 46px;

        flex-basis: 46px;
    }

    .stat-card strong {
        font-size: 1.4rem;
    }

}

/* =========================================================
   USUÁRIOS
   ========================================================= */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #7b8799;
    font-size: .76rem;
}

.breadcrumb i {
    font-size: .65rem;
}


/* ---------------------------------------------------------
   CARDS DE USUÁRIOS
   --------------------------------------------------------- */

.user-stats {
    margin-bottom: 20px;
}

.user-stats .stat-card {
    min-height: 112px;
}


/* ---------------------------------------------------------
   PAINEL DE USUÁRIOS
   --------------------------------------------------------- */

.users-panel {
    margin-top: 20px;
}

.users-panel .panel-header {
    padding: 17px 20px;
}

.user-search {
    position: relative;
    width: 310px;
}

.user-search i {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #8190a5;
    font-size: .9rem;
}

.user-search input {
    width: 100%;
    height: 36px;
    padding: 0 12px 0 34px;
    border: 1px solid #dce3ec;
    border-radius: 7px;
    outline: none;
    color: #17243a;
    background: #fff;
    font-size: .76rem;
}

.user-search input:focus {
    border-color: #ff9a69;
    box-shadow: 0 0 0 3px rgba(255, 104, 20, .08);
}


/* ---------------------------------------------------------
   TABELA
   --------------------------------------------------------- */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.users-table th {
    height: 42px;
    padding: 0 14px;
    border-bottom: 1px solid #e5eaf0;
    color: #647187;
    background: #fbfcfe;
    font-size: .68rem;
    font-weight: 750;
    text-align: left;
}

.users-table td {
    height: 58px;
    padding: 0 14px;
    border-bottom: 1px solid #edf1f5;
    color: #3c4a60;
    font-size: .73rem;
}

.users-table tbody tr:hover {
    background: #fcfdff;
}

.users-table tbody tr:last-child td {
    border-bottom: 0;
}


/* ---------------------------------------------------------
   USUÁRIO / AVATAR
   --------------------------------------------------------- */

.table-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-avatar {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #2563eb;
    font-size: .68rem;
    font-weight: 800;
}

.table-user strong {
    color: #25344b;
    font-size: .74rem;
}


/* ---------------------------------------------------------
   PERFIS
   --------------------------------------------------------- */

.role-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: .65rem;
    font-weight: 700;
}

.role-admin {
    color: #ea580c;
    background: #fff1e8;
}

.role-supervisor {
    color: #16a34a;
    background: #eaf9ef;
}

.role-agent {
    color: #2563eb;
    background: #eaf2ff;
}


/* ---------------------------------------------------------
   PRESENÇA
   --------------------------------------------------------- */

.presence {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .72rem;
    font-weight: 600;
}

.presence > span:first-child {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.presence.online {
    color: #16a34a;
}

.presence.online > span:first-child {
    background: #16a34a;

    box-shadow: 0 0 0 3px rgba(22, 163, 74, .10);
}

.presence.offline {
    color: #66748a;
}

.presence.offline > span:first-child {
    background: #758398;
}


/* ---------------------------------------------------------
   SITUAÇÃO
   --------------------------------------------------------- */

.status-badge {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: .65rem;
    font-weight: 700;
}

.status-active {
    color: #16a34a;
    background: #eaf9ef;
}

.status-blocked {
    color: #dc2626;
    background: #fff0f0;
}


/* ---------------------------------------------------------
   AÇÕES
   --------------------------------------------------------- */

.table-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.table-action {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid #dfe5ec;
    border-radius: 6px;
    color: #637188;
    background: #fff;
    font-size: .75rem;
    text-decoration: none;
    cursor: pointer;
    transition: .15s ease;
}

.table-action:hover {
    color: #ff6814;
    border-color: #ffc4a7;
    background: #fff8f4;
}

.table-action.danger {
    color: #dc2626;
}

.table-action.danger:hover {
    border-color: #fecaca;
    background: #fff1f1;
}


/* ---------------------------------------------------------
   FOOTER DA TABELA
   --------------------------------------------------------- */

.table-footer {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-top: 1px solid #e8edf3;
    color: #77849a;
    font-size: .72rem;
}

.table-footer strong {
    color: #394860;
}

.list-sort-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    font-weight: inherit;
    cursor: pointer;
}

.list-sort-button:hover { color: #10427e; }
.list-sort-button:focus-visible { outline: 2px solid rgba(255, 104, 20, .45); outline-offset: 3px; border-radius: 3px; }
.list-sort-indicator { min-width: 9px; color: #f97316; font-size: .85rem; line-height: 1; }
.list-table-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 12px 20px; }
.list-table-toolbar.has-search { justify-content: flex-end; }
.list-table-page-size { display: inline-flex; align-items: center; gap: 9px; color: var(--theme-muted, #53627b); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.list-table-page-size select { min-height: 36px; min-width: 76px; padding: 7px 10px; border: 1px solid var(--theme-border, #d8e1ee); border-radius: 8px; color: var(--theme-text, #24344d); background: var(--theme-surface, #fff); font: inherit; font-weight: 600; }
.list-table-page-size select:focus { outline: 2px solid rgba(255,104,20,.2); border-color: var(--admin-primary); }
.list-table-footer .pagination button { cursor: pointer; }
.list-table-footer .pagination button:disabled { cursor: not-allowed; }

.pagination {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination button {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border: 1px solid #dfe5ec;
    border-radius: 6px;
    color: #617087;
    background: #fff;
    font-size: .7rem;
}

.pagination button.active {
    color: #fff;
    border-color: #ff6814;
    background: #ff6814;
}

.pagination button:disabled {
    opacity: .45;
    cursor: not-allowed;
}


/* ---------------------------------------------------------
   ESTADO VAZIO
   --------------------------------------------------------- */

.empty-table {
    display: flex;
    min-height: 280px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.empty-table > i {
    color: #ff6814;
    font-size: 2rem;
}

.empty-table h3 {
    margin: 12px 0 5px;
    color: #25344b;
    font-size: .95rem;
}

.empty-table p {
    margin: 0 0 18px;
    color: #77849a;
    font-size: .76rem;
}


/* ---------------------------------------------------------
   LEGENDA
   --------------------------------------------------------- */

.users-legend {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid #e1e7ee;
    border-radius: 10px;
    background: #fff;
    color: #6d7a90;
    font-size: .68rem;
}

.users-legend > div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.users-legend > div + div {
    padding-left: 25px;
    border-left: 1px solid #e8edf3;
}

.users-legend strong {
    margin-bottom: 2px;
    color: #27364d;
    font-size: .72rem;
}

.users-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.users-legend b {
    color: #45536a;
}

.presence-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
}

.presence-dot.online {
    background: #16a34a;
}

.presence-dot.offline {
    background: #758398;
}

.presence-dot.blocked {
    background: #dc2626;
}

.legend-admin {
    color: #ea580c !important;
}

.legend-supervisor {
    color: #16a34a !important;
}

.legend-agent {
    color: #2563eb !important;
}


/* ---------------------------------------------------------
   RESPONSIVO
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .users-legend {
        grid-template-columns: 1fr;
    }

    .users-legend > div + div {
        padding-top: 15px;
        padding-left: 0;
        border-top: 1px solid #e8edf3;
        border-left: 0;
    }

}

@media (max-width: 650px) {
    .user-search {
        width: 100%;
    }

    .users-panel .panel-header {
        width: 100%;
    }

    .users-table {
        min-width: 1050px;
    }

}

/* =========================================================
   FORMULÁRIO DE USUÁRIO
   ========================================================= */

.user-form-panel {
    max-width: 100%;
}

.user-form-panel .panel-header {
    padding: 20px 24px;
}

.user-form-panel .panel-header h2 {
    margin-bottom: 5px;
}

.user-form-panel .panel-header p {
    margin: 0;
    color: #7a879b;
    font-size: .74rem;
}

.user-form {
    padding: 24px;
}

.required {
    color: #dc2626;
    font-weight: 700;
    margin-left: 2px;
}

.password-requirements {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 12px;
    color: #64748b;
}

.password-requirements span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.password-requirements .valid {
    color: #16a34a;
}

.password-requirements .invalid {
    color: #dc2626;
}

/* Mensagens de validação dos campos */

.field-feedback {
    min-height: 18px;
    margin-top: 4px;
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 500;
}

.field-help {
    margin-top: 2px;
    font-size: 13px;
    color: #94a3b8;
}

.field-feedback.error {
    color: #dc2626;
}


.field-feedback.success {
    color: #16a34a;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 24px;
}

.form-grid-full { grid-column: 1 / -1; }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group[hidden] { display: none; }

.form-group label {
    color: #26354c;
    font-size: .74rem;
    font-weight: 700;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #d9e1eb;
    border-radius: 7px;
    outline: none;
    color: #27364d;
    background: #fff;
    font-family: inherit;
    font-size: .75rem;
    transition: .15s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #ff6814;
    box-shadow: 0 0 0 3px rgba(255, 104, 20, .08);
}

.form-group input.readonly-field {
    color: #64748b;
    background: #f1f5f9;
    cursor: not-allowed;
}

.form-group small {
    color: #8793a6;
    font-size: .65rem;
}

.form-divider {
    height: 1px;
    margin: 28px 0 22px;
    background: #e8edf3;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-checkbox input {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    accent-color: #ff6814;
}

.form-checkbox label {
    display: block;
    margin-bottom: 3px;
    color: #27364d;
    font-size: .74rem;
    font-weight: 700;
}

.form-checkbox small {
    color: #8793a6;
    font-size: .65rem;
}

/* Botão desabilitado */

button:disabled,
.btn:disabled {
    background-color: #cbd5e1;
    border-color: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.8;
}

button:disabled:hover {
    transform: none;
}

@media (max-width: 700px) {

    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   MENU SISTEMA / SUBMENU
   ========================================================= */

.system-menu-item {
    position: relative;
}

.submenu-arrow {
    width: auto !important;
    margin-left: auto;
    color: rgba(255, 255, 255, .35) !important;
    font-size: .65rem !important;
    transition: transform .2s ease;
}


/* Submenu */
.sidebar-submenu {
    display: flex;
    flex-direction: column;
    margin: 2px 0 8px 12px;
    padding-left: 13px;
    border-left: 1px solid rgba(255, 255, 255, .10);
}

.sidebar-submenu .submenu-item {
    min-height: 38px;
    margin-bottom: 2px;
    padding: 8px 10px;
    font-size: .78rem;
}

.sidebar-submenu .submenu-item i {
    width: 18px;
    font-size: .9rem;
}


/* Itens desabilitados do menu lateral, incluindo itens fora dos submenus. */
.admin-sidebar .nav-item.disabled {
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}

.admin-sidebar .nav-item.disabled > i,
.admin-sidebar .nav-item.disabled > span {
    opacity: .38;
}

.admin-sidebar .nav-item.disabled:hover {
    background: transparent;
}

.admin-sidebar .nav-item.disabled small {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    margin-left: auto;
    padding: 3px 6px;
    border-radius: 999px;
    color: #96500f;
    background: #fff0dc;
    font-size: .55rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}


/* Hover */
.sidebar-submenu .submenu-item:not(.disabled):hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
    transform: translateX(2px);
}

.sidebar-submenu .submenu-item:not(.disabled):hover i {
    color: var(--admin-primary);
}

.sidebar-submenu {
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
    opacity: 0;
    transition: max-height .25s ease, opacity .2s ease, margin .25s ease;
}

.sidebar-submenu.open {
    max-height: 400px;
    margin-top: 2px;
    margin-bottom: 8px;
    opacity: 1;
}

/* =========================================================
   DATA / HORA
   ========================================================= */

.datetime-panel {
    overflow: hidden;
}

.datetime-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.panel-description {
    margin: 6px 0 0;
    color: #718096;
    font-size: 14px;
}


/* Botão */

.datetime-panel-header .btn {
    flex-shrink: 0;
}


/* Área das configurações */

.datetime-panel .panel-body {
    padding: 0;
}


/* Cada configuração */

.datetime-setting {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 28px;
    border-bottom: 1px solid #e7edf3;
}

.datetime-setting:last-child {
    border-bottom: 0;
}


/* Ícone */

.datetime-setting-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    border-radius: 12px;

    background: #fff4ed;
    color: #ff6418;

    font-size: 20px;
}


/* Conteúdo */

.datetime-setting-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}


/* Nome da configuração */

.datetime-setting-label {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}


/* Valor */

.datetime-setting-value {
    color: #17233b;
    font-size: 16px;
    font-weight: 700;
}


/* Descrição */

.datetime-setting-help {
    color: #94a3b8;
    font-size: 13px;
}


/* Status */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    width: fit-content;

    padding: 5px 10px;

    border-radius: 7px;

    font-size: 13px;
    font-weight: 600;
}

.status-active {
    background: #e9f9ef;
    color: #16a34a;
}

.status-blocked {
    background: #fff0f0;
    color: #dc2626;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: currentColor;
}


/* Painel informativo */

.info-panel {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    margin-top: 20px;
    padding: 18px 22px;

    border: 1px solid #dbe7f2;
    border-radius: 12px;

    background: #f8fbff;

    color: #52627a;
}

.info-panel-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    border-radius: 9px;

    background: #eaf2ff;
    color: #2563eb;

    font-size: 17px;
}

.info-panel strong {
    display: block;

    margin-bottom: 5px;

    color: #17233b;
    font-size: 14px;
}

.info-panel p {
    margin: 0;

    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}


/* Responsividade */

@media (max-width: 768px) {

    .datetime-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .datetime-panel-header .btn {
        width: 100%;
    }

    .datetime-setting {
        padding: 18px;
    }

}

/* ---------------------------------------------------------
   DATA E HORA — VISÃO DE STATUS E CONFIGURAÇÃO
   --------------------------------------------------------- */
.datetime-page-breadcrumb { margin: 0 0 14px; color: var(--admin-muted); font-size: .78rem; }
.datetime-page-breadcrumb i { color: #94a3b8; font-size: .65rem; }
.datetime-overview { margin: 0 0 20px; }
.datetime-overview-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:16px; }
.datetime-overview-title { display:flex; align-items:center; gap:14px; min-width:0; }
.datetime-heading-icon, .datetime-section-icon, .datetime-form-icon { display:grid; flex:0 0 auto; place-items:center; color:#f97316; background:#fff3e8; }
.datetime-heading-icon { width:52px; height:52px; border-radius:14px; font-size:1.45rem; }
.datetime-overview-title h1 { margin:0 0 3px; color:#17233b; font-size:1.65rem; letter-spacing:-.035em; }
.datetime-overview-title p { margin:0; color:#64748b; font-size:.82rem; }
.datetime-sync-pill { display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border:1px solid #bbf7d0; border-radius:12px; color:#15803d; background:#ecfdf3; font-size:.82rem; font-weight:750; white-space:nowrap; }
.datetime-sync-pill.is-pending { color:#a16207; border-color:#fde68a; background:#fffbeb; }
.datetime-status-cards { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin-bottom:12px; }
.datetime-status-card { display:flex; align-items:center; gap:12px; min-width:0; min-height:72px; padding:12px 14px; border:1px solid #e1e8f2; border-radius:15px; background:#fff; box-shadow:0 3px 10px rgba(23,35,59,.035); }
.datetime-status-icon { display:grid; flex:0 0 46px; width:46px; height:46px; place-items:center; border-radius:13px; font-size:1.2rem; }
.datetime-status-icon.is-red { color:#ef4444; background:#fff0f0; }
.datetime-status-icon.is-green { color:#16a34a; background:#eaf9ef; }
.datetime-status-icon.is-slate { color:#52627a; background:#f0f3f8; }
.datetime-status-icon.is-blue { color:#2563eb; background:#edf4ff; }
.datetime-status-icon.is-orange { color:#f97316; background:#fff3e8; }
.datetime-status-card > div { display:grid; gap:5px; min-width:0; }
.datetime-status-card > div > span { color:#64748b; font-size:.72rem; font-weight:650; }
.datetime-state { display:inline-flex; align-items:center; gap:6px; font-size:.83rem; font-weight:750; line-height:1.25; }
.datetime-state i { font-size:.58rem; }
.datetime-state.is-ok { color:#15803d; }
.datetime-state.is-error { color:#dc2626; }
.datetime-state.is-muted { color:#64748b; }
.datetime-state.is-warning { color:#b45309; }
.datetime-status-value { overflow:hidden; color:#17233b; font-size:1.04rem; text-overflow:ellipsis; white-space:nowrap; }
.datetime-install-alert { display:flex; align-items:center; gap:14px; margin:0 0 12px; padding:13px 16px; border:1px solid #fecaca; border-radius:14px; color:#b91c1c; background:#fff5f5; }
.datetime-install-icon { display:grid; flex:0 0 46px; width:46px; height:46px; place-items:center; border-radius:12px; color:#dc2626; background:#fee8e8; font-size:1.2rem; }
.datetime-install-alert strong { display:block; margin-bottom:3px; font-size:.94rem; }
.datetime-install-alert p { margin:0; font-size:.8rem; line-height:1.45; }
.datetime-overview-grid { display:grid; grid-template-columns:minmax(260px,1.04fr) minmax(290px,.95fr) minmax(360px,1.35fr); align-items:stretch; gap:12px; }
.datetime-info-card { min-width:0; padding:16px; border:1px solid #e1e8f2; border-radius:15px; background:#fff; box-shadow:0 3px 10px rgba(23,35,59,.035); }
.datetime-card-heading { display:flex; align-items:center; gap:10px; min-width:0; margin-bottom:14px; color:#f97316; }
.datetime-card-heading > i { flex:0 0 auto; font-size:1.15rem; }
.datetime-card-heading h2 { margin:0; color:#17233b; font-size:1rem; font-weight:780; }
.datetime-card-heading p { margin:2px 0 0; color:#64748b; font-size:.7rem; }
.datetime-clock-main { display:flex; align-items:center; gap:16px; min-height:110px; }
.datetime-clock-icon { display:grid; flex:0 0 82px; width:82px; height:82px; place-items:center; border-radius:18px; color:#f97316; background:#fff1e3; font-size:2.45rem; }
.datetime-clock-main > div { display:grid; gap:4px; min-width:0; }
.datetime-clock-value { color:#13223e; font-size:clamp(1.8rem,2.25vw,2.7rem); font-variant-numeric:tabular-nums; letter-spacing:-.04em; line-height:1.05; white-space:nowrap; }
.datetime-clock-date { color:#536783; font-size:.86rem; }
.datetime-clock-meta { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding-top:14px; border-top:1px solid #e7edf5; }
.datetime-clock-meta > div { display:flex; align-items:center; gap:9px; min-width:0; }
.datetime-meta-icon { display:grid; flex:0 0 36px; width:36px; height:36px; place-items:center; border-radius:10px; color:#f97316; background:#fff3e8; font-size:1rem; }
.datetime-meta-icon.is-coral { color:#ea580c; background:#fff1ed; }
.datetime-clock-meta > div > div { display:grid; min-width:0; gap:3px; }
.datetime-clock-meta small, .datetime-rtc-values small { color:#64748b; font-size:.68rem; }
.datetime-clock-meta strong, .datetime-rtc-values strong { overflow-wrap:anywhere; color:#17233b; font-size:.78rem; }
.datetime-result-banner { display:flex; align-items:center; gap:12px; margin-bottom:12px; padding:11px 13px; border-radius:12px; }
.datetime-result-banner > i { flex:0 0 auto; font-size:1.7rem; }
.datetime-result-banner > div { display:grid; gap:2px; }
.datetime-result-banner strong { font-size:.88rem; }
.datetime-result-banner span { font-size:.72rem; line-height:1.35; }
.datetime-result-banner.is-ok { color:#15803d; background:#eaf9ef; }
.datetime-result-banner.is-pending { color:#a16207; background:#fff8e5; }
.datetime-result-banner.is-error { color:#b91c1c; background:#fff0f0; }
.datetime-metrics-list { display:grid; gap:2px; margin:0; }
.datetime-metrics-list > div { display:flex; align-items:center; justify-content:space-between; gap:12px; min-width:0; padding:5px 2px; border-bottom:1px solid #eef2f7; }
.datetime-metrics-list > div:last-child { border-bottom:0; }
.datetime-metrics-list dt { display:flex; align-items:center; gap:8px; min-width:0; color:#34445e; font-size:.72rem; }
.datetime-metrics-list dt i { color:#71839f; }
.datetime-metrics-list dd { overflow:hidden; margin:0; color:#17233b; font-size:.73rem; font-weight:750; text-overflow:ellipsis; white-space:nowrap; }
.datetime-side-stack { display:grid; grid-template-rows:minmax(0,1fr) auto; gap:12px; min-width:0; }
.datetime-sources-card { overflow:hidden; }
.datetime-sources-card .datetime-card-heading { margin-bottom:10px; }
.datetime-sources-card .datetime-source-count { margin-left:auto; padding:5px 9px; border-radius:999px; color:#43536c; background:#f1f4f8; font-size:.67rem; font-weight:700; white-space:nowrap; }
.ntp-sources-table-wrapper { width:100%; overflow:auto; }
.ntp-sources-table { width:100%; border-collapse:collapse; font-size:.68rem; white-space:nowrap; }
.ntp-sources-table th, .ntp-sources-table td { padding:8px 7px; border-bottom:1px solid #edf1f6; text-align:left; }
.ntp-sources-table th { color:#52627a; background:#f6f8fb; font-size:.64rem; font-weight:750; }
.ntp-sources-table td { color:#34445e; }
.ntp-sources-table tbody tr:last-child td { border-bottom:0; }
.ntp-sources-table td strong { color:#17233b; }
.datetime-source-state { display:inline-flex; align-items:center; gap:5px; padding:4px 7px; border-radius:999px; color:#334155; background:#f1f5f9; font-size:.63rem; font-weight:700; }
.datetime-source-state i { font-size:.48rem; }
.datetime-source-state.is-primary { color:#15803d; background:#eaf9ef; }
.datetime-source-state.is-combined { color:#1d4ed8; background:#edf4ff; }
.datetime-source-state.is-warning { color:#a16207; background:#fff8e5; }
.datetime-source-state.is-error { color:#b91c1c; background:#fff0f0; }
.datetime-source-state.is-muted { color:#52627a; background:#eef2f7; }
.datetime-empty-sources { display:flex; min-height:70px; align-items:center; justify-content:center; gap:10px; color:#64748b; font-size:.76rem; }
.datetime-empty-sources i { color:#94a3b8; font-size:1.1rem; }
.datetime-rtc-values { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.datetime-rtc-values > div { display:grid; gap:5px; min-width:0; padding:3px 0; }
.datetime-chrony-state-card .datetime-metrics-list { margin-top:4px; }
.datetime-unavailable-content { display:flex; min-height:170px; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.datetime-unavailable-content > span { position:relative; display:grid; width:78px; height:62px; place-items:center; margin-bottom:10px; color:#a8b6c9; font-size:3rem; }
.datetime-unavailable-content > span > i:last-child { position:absolute; right:0; bottom:0; color:#ef4444; background:#fff; border-radius:50%; font-size:1.7rem; }
.datetime-unavailable-content > strong { color:#17233b; font-size:.95rem; }
.datetime-unavailable-content > p { max-width:250px; margin:4px 0 0; color:#64748b; font-size:.76rem; line-height:1.45; }
.datetime-section-header { justify-content:flex-start; gap:12px; padding:18px 22px; }
.datetime-section-icon, .datetime-form-icon { width:42px; height:42px; border-radius:12px; font-size:1.15rem; }
.datetime-section-copy h2 { margin-bottom:3px; font-size:1.05rem; }
.datetime-config-panel .panel-body { padding:18px; }
.datetime-config-grid { gap:14px; }
.datetime-config-card { border-radius:14px; }
.datetime-config-card .system-subsection-header { display:flex; align-items:flex-start; gap:11px; }
.datetime-config-card .system-subsection-header > div { min-width:0; }
.datetime-note { margin-top:12px; border-radius:14px; }

@media (max-width: 1350px) {
    .datetime-status-cards { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .datetime-overview-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .datetime-side-stack { grid-column:1 / -1; grid-template-columns:minmax(0,1.5fr) minmax(240px,.8fr); grid-template-rows:auto; }
}
@media (max-width: 900px) {
    .datetime-overview-grid { grid-template-columns:1fr; }
    .datetime-side-stack { grid-column:auto; grid-template-columns:1fr; }
}
@media (max-width: 680px) {
    .datetime-page-breadcrumb { margin-bottom:10px; }
    .datetime-overview-heading { align-items:flex-start; flex-direction:column; }
    .datetime-overview-title { align-items:flex-start; }
    .datetime-overview-title h1 { font-size:1.4rem; }
    .datetime-overview-title p { line-height:1.45; }
    .datetime-status-cards { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
    .datetime-status-card { gap:8px; min-height:66px; padding:9px; }
    .datetime-status-icon { flex-basis:36px; width:36px; height:36px; font-size:1rem; }
    .datetime-status-card > div > span { font-size:.64rem; }
    .datetime-state { font-size:.72rem; }
    .datetime-status-value { font-size:.9rem; }
    .datetime-install-alert { align-items:flex-start; padding:11px; }
    .datetime-install-icon { flex-basis:38px; width:38px; height:38px; }
    .datetime-info-card { padding:13px; }
    .datetime-clock-main { gap:10px; min-height:92px; }
    .datetime-clock-icon { flex-basis:62px; width:62px; height:62px; font-size:1.9rem; }
    .datetime-clock-value { font-size:clamp(1.5rem,7vw,2rem); }
    .datetime-clock-date { font-size:.75rem; }
    .datetime-clock-meta { gap:8px; }
    .datetime-clock-meta > div { align-items:flex-start; gap:6px; }
    .datetime-meta-icon { flex-basis:30px; width:30px; height:30px; }
    .datetime-clock-meta strong { font-size:.69rem; }
    .datetime-rtc-values { grid-template-columns:1fr; gap:8px; }
    .datetime-section-header { padding:15px; }
    .datetime-config-panel .panel-body { padding:12px; }
    .datetime-config-card { padding:14px; }
    .datetime-form-actions { align-items:stretch; flex-direction:column; }
    .datetime-form-actions button { width:100%; }
    .datetime-config-footnote { margin:0 14px 14px; overflow-wrap:anywhere; }
}

/* PJSIP */
.pjsip-panel,
.pjsip-form-panel { overflow: hidden; }
.pjsip-stats { margin: 0 0 20px; }
.pjsip-stats .stat-card { min-height: 112px; }
.pjsip-apply-form { margin: 0; }
.pjsip-apply-button { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; }
.pjsip-apply-modal { width: min(680px, calc(100% - 32px)); }
.pjsip-apply-modal-footer { align-items: center; gap: 10px; }
.pjsip-apply-modal-footer form { margin: 0; }
.pjsip-apply-modal-footer form button { min-height: 40px; }
.pjsip-panel .panel-header { padding: 17px 20px; }
.pjsip-panel .user-search { width: min(330px, 100%); }
.pjsip-table { min-width: 1120px; }
.pjsip-table [hidden] { display: none !important; }
.pjsip-avatar { color: #f05b00; background: #fff0e3; }
.pjsip-table-footer { border-bottom: 1px solid #e8edf3; }
.pjsip-table-footer .pagination:empty { display: none; }
.pjsip-table-footer .pagination button { cursor: pointer; }
.pjsip-table-footer .pagination button:disabled { cursor: not-allowed; }
.pjsip-dashboard-legend { margin-top: 18px; }
.pjsip-dashboard-legend > div + div { padding-left: 25px; border-left: 1px solid #e8edf3; }
.moh-dashboard-legend { grid-template-columns: 1fr; }
.pjsip-user-form-actions { justify-content: flex-end; gap: 12px; }
.moh-form-fields { display: grid; gap: 22px; }
.moh-form-fields > .form-group { min-width: 0; }
.moh-upload-group > label:first-child { color: #26354c; font-size: .74rem; font-weight: 700; }
.moh-upload-dropzone { position: relative; display: flex; min-height: 176px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 22px; overflow: hidden; border: 2px dashed #fdba74; border-radius: 14px; color: #0c3976; background: linear-gradient(135deg, #fffaf6, #fff 70%); cursor: pointer; text-align: center; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease; }
.moh-upload-dropzone:hover, .moh-upload-dropzone.is-dragover { border-color: var(--admin-primary); background: #fff7ed; box-shadow: 0 0 0 4px rgba(255, 104, 20, .08); }
.moh-upload-dropzone.is-dragover { transform: scale(1.005); }
.moh-upload-dropzone:focus-within { outline: 3px solid rgba(37, 99, 235, .18); outline-offset: 2px; }
.moh-upload-input { position: absolute; inset: 0; z-index: 1; width: 100% !important; height: 100% !important; padding: 0 !important; border: 0 !important; opacity: 0; cursor: pointer; }
.moh-upload-icon { display: grid; width: 52px; height: 52px; place-items: center; margin-bottom: 2px; border-radius: 15px; color: var(--admin-primary); background: #fff0e3; font-size: 1.65rem; }
.moh-upload-dropzone strong { color: #0c3976; font-size: .95rem; }
.moh-upload-secondary { color: #526b8d; font-size: .82rem; }
.moh-upload-dropzone > small { color: #8392a8; font-size: .72rem; }
.moh-upload-feedback { color: #16803d; font-size: .76rem; }
.moh-upload-feedback.is-error { color: #b91c1c; }
.moh-upload-feedback[hidden], .moh-selected-files[hidden] { display: none !important; }
.moh-selected-files { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.moh-selected-heading { color: #526b8d; font-size: .76rem; font-weight: 700; }
.moh-selected-file { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid #bbf7d0; border-radius: 10px; color: #166534; background: #f0fdf4; font-size: .78rem; }
.moh-selected-file .moh-selected-file-icon { color: #15803d; background: #dcfce7; }
.moh-selected-file .moh-selected-file-type { color: #166534; background: #dcfce7; }
.moh-selected-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moh-selected-file small { color: #8492a6; font-size: .7rem; }
.moh-file-list { display: grid; gap: 10px; margin-top: 2px; }
.moh-file-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.moh-file-list-heading h4 { margin: 0; color: #263f60; font-size: .84rem; }
.moh-file-list-heading > span { color: #7889a0; font-size: .72rem; }
.moh-file-list-items { display: grid; gap: 8px; }
.moh-file-item { position: relative; display: flex; min-height: 54px; align-items: center; gap: 12px; padding: 8px 13px; border: 1px solid #dce8f8; border-radius: 10px; color: #263f60; background: #fff; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.moh-file-item:hover { border-color: #fdba74; box-shadow: 0 2px 8px rgba(15, 43, 82, .05); }
.moh-remove-checkbox { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.moh-file-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 9px; color: #16467d; background: #edf4ff; font-size: 1rem; }
.moh-remove-checkbox:focus-visible + .moh-file-icon { outline: 3px solid rgba(37, 99, 235, .3); outline-offset: 2px; }
.moh-file-name { min-width: 0; flex: 0 1 auto; overflow-wrap: anywhere; color: #263f60; font-size: .83rem; font-weight: 650; }
.moh-file-type { padding: 4px 9px; border-radius: 999px; color: #16467d; background: #edf4ff; font-size: .65rem; font-weight: 800; letter-spacing: .03em; }
.moh-remove-action { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: #dc2626; font-size: .74rem; font-weight: 650; white-space: nowrap; }
.moh-remove-action > i { font-size: .9rem; }
.moh-remove-selected { display: none; }
.moh-file-item.is-marked-for-removal { border-color: #fca5a5; background: #fff1f2; box-shadow: inset 3px 0 #dc2626; }
.moh-file-item.is-marked-for-removal .moh-file-icon { color: #b91c1c; background: #fee2e2; }
.moh-file-item.is-marked-for-removal .moh-file-name { color: #991b1b; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.moh-file-item.is-marked-for-removal .moh-file-type { color: #991b1b; background: #fee2e2; }
.moh-file-item.is-marked-for-removal .moh-remove-default { display: none; }
.moh-file-item.is-marked-for-removal .moh-remove-selected { display: inline; }
.moh-empty-files { display: flex; align-items: center; gap: 8px; margin: 0; padding: 16px; border: 1px dashed #d6e2f1; border-radius: 10px; color: #7889a0; background: #fff; font-size: .78rem; }
.pjsip-legend-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: currentColor; }
.pjsip-legend-dot.registered { color: #15803d; }
.pjsip-legend-dot.unregistered { color: #64748b; }
.pjsip-legend-dot.available { color: #15803d; }
.pjsip-legend-dot.offline { color: #dc2626; }
.pjsip-legend-dot.authenticating { color: #d97706; }
.pjsip-legend-dot.rejected { color: #7e22ce; }
.pjsip-legend-dot.unknown { color: #64748b; }

@media (min-width: 1800px) {
    .admin-content { max-width: 2200px; }
}

/* Recupera espaço vertical em desktops com viewport baixo, como ultrawides. */
@media (min-width: 901px) and (max-height: 900px) {
    .admin-header { height: 64px; }
    .admin-content { padding-top: 22px; padding-bottom: 22px; }
    .page-heading { margin-bottom: 20px; }
}

.pjsip-legend-dot.not-applicable { color: #94a3b8; }
.pjsip-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 0 24px 20px; }
.pjsip-status { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: .72rem; font-weight: 600; }
.pjsip-status i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: currentColor; }
.pjsip-status.registered { color: #16a34a; }
.pjsip-status.unregistered { color: #64748b; }
.pjsip-status.available { color: #16a34a; }
.pjsip-status.registered i, .pjsip-status.available i { box-shadow: 0 0 0 3px rgba(22, 163, 74, .10); }
.pjsip-status.offline { color: #66748a; }
.pjsip-status.authenticating { color: #d97706; }
.pjsip-status.rejected { color: #7e22ce; }
.pjsip-status.unknown { color: #64748b; }
.pjsip-status.not-applicable { color: #94a3b8; }
.label-with-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.trunk-info-trigger { display: inline-flex; width: 25px; height: 25px; align-items: center; justify-content: center; border: 1px solid #bfdbfe; border-radius: 50%; color: #2563a9; background: #eff6ff; cursor: pointer; font-size: .9rem; }

/* Painel de atendimento do agente */
.agent-workspace { min-height: 100vh; color: var(--admin-text); background: var(--admin-bg); }
.agent-topbar { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 18px; padding: 12px clamp(20px, 5vw, 72px); color: #fff; background: linear-gradient(110deg, #001c31, #003452); box-shadow: 0 3px 14px rgba(0, 20, 40, .12); }
.agent-brand { display: inline-flex; align-items: center; gap: 20px; color: #fff; text-decoration: none; font-size: .9rem; font-weight: 700; }
.agent-brand img { display: block; width: 132px; max-height: 48px; object-fit: contain; }
.agent-brand span { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .22); }
.agent-topbar form { margin: 0; }
.agent-logout { display: inline-flex; min-height: 40px; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 8px; color: #fff; background: rgba(255, 255, 255, .06); cursor: pointer; font: inherit; font-size: .78rem; font-weight: 650; }
.agent-logout:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); }
.agent-main-content { width: min(100%, 1240px); margin: 0 auto; padding: 44px 30px 60px; }
.agent-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.agent-eyebrow { margin: 0 0 8px; color: #f16617; font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.agent-welcome h1 { margin: 0 0 7px; color: #17243a; font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 780; letter-spacing: -.04em; }
.agent-welcome p:last-child { margin: 0; color: #6b778c; font-size: .95rem; }
.agent-queue-pill { display: inline-flex; min-height: 36px; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid #dce8f8; border-radius: 999px; color: #16467d; background: #fff; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.agent-queue-pill i { color: #ff6814; }
.agent-welcome-actions { display: flex; align-items: center; gap: 9px; }
.agent-refresh-button { display: inline-flex; width: 38px; height: 38px; flex: 0 0 38px; align-items: center; justify-content: center; border: 1px solid #dce5f1; border-radius: 9px; color: #536985; background: #fff; text-decoration: none; transition: color .16s ease, border-color .16s ease, transform .16s ease; }
.agent-refresh-button:hover { border-color: #fdba74; color: #f16617; }
.agent-alert { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 18px; padding: 12px 15px; border: 1px solid #dbeafe; border-radius: 9px; color: #1e40af; background: #eff6ff; font-size: .84rem; }
.agent-alert.success { border-color: #bbf7d0; color: #166534; background: #f0fdf4; }
.agent-alert.error { border-color: #fecaca; color: #991b1b; background: #fff7f7; }
.flash-message { opacity: 1; transform: translateY(0); transition: opacity .25s ease, transform .25s ease, margin .25s ease, padding .25s ease; }
.flash-message.is-dismissing { opacity: 0; transform: translateY(-4px); margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }
.agent-session-card { padding: clamp(20px, 3vw, 32px); border: 1px solid #dce5f1; border-radius: 16px; background: #fff; box-shadow: 0 6px 22px rgba(15, 43, 82, .045); }
.agent-section-heading { margin-bottom: 22px; }
.agent-section-heading > div { display: flex; align-items: center; gap: 13px; }
.agent-step { display: inline-flex; width: 38px; height: 38px; flex: 0 0 38px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #ff8b00, #ff5a00); font-size: .75rem; font-weight: 800; }
.agent-section-heading h2, .agent-session-heading h2 { margin: 0 0 4px; color: #0c3976; font-size: 1.12rem; font-weight: 800; }
.agent-section-heading p, .agent-session-heading p { margin: 0; color: #7183a1; font-size: .82rem; }
.agent-extension-form { display: block; width: 100%; margin: 0; }
.agent-extension-list { display: grid; width: 100%; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.agent-extension-option { position: relative; display: flex; min-width: 0; min-height: 142px; align-items: flex-start; gap: 13px; padding: 16px; border: 1px solid #dce5f1; border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, opacity .16s ease; }
.agent-extension-option:not(.is-disabled):hover { filter: brightness(.985); box-shadow: 0 5px 16px rgba(15, 43, 82, .08); }
.agent-extension-option:has(input:checked) { border-color: #ff6814; box-shadow: 0 0 0 3px rgba(255, 104, 20, .14); }
.agent-extension-option input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.agent-extension-option input:focus-visible + .agent-extension-icon { outline: 3px solid rgba(37, 99, 235, .3); outline-offset: 2px; }
.agent-extension-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; margin-top: 2px; border-radius: 11px; color: #2563eb; background: #eff6ff; font-size: 1.08rem; }
.agent-extension-info { display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: flex-start; gap: 4px; }
.agent-extension-kind { color: #7183a1; font-size: .67rem; font-weight: 650; letter-spacing: .015em; }
.agent-extension-info .agent-extension-number { max-width: 100%; overflow: hidden; color: #203653; font-size: 1.45rem; font-weight: 800; line-height: 1.12; text-overflow: ellipsis; white-space: nowrap; }
.agent-extension-state { color: #64748b; font-size: .76rem; font-weight: 750; line-height: 1.25; }
.agent-extension-agent { max-width: 100%; overflow: hidden; color: #7183a1; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.agent-extension-option.is-free { border-color: #bbf7d0; background: #f0fdf4; }
.agent-extension-option.is-free .agent-extension-icon { color: #15803d; background: #dcfce7; }
.agent-extension-option.is-free .agent-extension-state { color: #15803d; }
.agent-extension-option.is-reconnect { border-color: #bfdbfe; background: #eff6ff; }
.agent-extension-option.is-reconnect .agent-extension-icon { color: #2563eb; background: #dbeafe; }
.agent-extension-option.is-reconnect .agent-extension-state { color: #1d4ed8; }
.agent-extension-option.is-in-use { border-color: #fde68a; background: #fffbeb; }
.agent-extension-option.is-in-use .agent-extension-icon { color: #b45309; background: #fef3c7; }
.agent-extension-option.is-in-use .agent-extension-state { color: #92400e; }
.agent-extension-option.is-unregistered, .agent-extension-option.is-unavailable { border-color: #fecaca; background: #fff7f7; }
.agent-extension-option.is-unregistered .agent-extension-icon, .agent-extension-option.is-unavailable .agent-extension-icon { color: #dc2626; background: #fee2e2; }
.agent-extension-option.is-unregistered .agent-extension-state, .agent-extension-option.is-unavailable .agent-extension-state { color: #b91c1c; }
.agent-extension-option.is-disabled-state { border-color: #e2e8f0; background: #f1f5f9; }
.agent-extension-option.is-disabled-state .agent-extension-icon { color: #64748b; background: #e2e8f0; }
.agent-extension-option.is-disabled-state .agent-extension-state { color: #64748b; }
.agent-extension-option.is-queue-bound { border-color: #ddd6fe; background: #f5f3ff; }
.agent-extension-option.is-queue-bound .agent-extension-icon { color: #7c3aed; background: #ede9fe; }
.agent-extension-option.is-queue-bound .agent-extension-state { color: #6d28d9; }
.agent-extension-option.is-own { border-color: #fed7aa; background: #fff7ed; }
.agent-extension-option.is-own .agent-extension-icon { color: #ea580c; background: #ffedd5; }
.agent-extension-option.is-own .agent-extension-state { color: #c2410c; }
.agent-extension-check { display: none; color: #f16617; font-size: .95rem; }
.agent-extension-option:has(input:checked) .agent-extension-check { display: inline-block; }
.agent-extension-option.is-disabled { cursor: not-allowed; }
.agent-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #edf1f6; }
.agent-form-footer p { display: flex; align-items: flex-start; gap: 7px; margin: 0; color: #7183a1; font-size: .75rem; }
.agent-form-footer p i { color: #7183a1; }
.agent-enter-button, .agent-leave-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 10px 17px; border: 1px solid transparent; border-radius: 8px; color: #fff; background: linear-gradient(135deg, #ff7a18, #ff5a00); box-shadow: 0 5px 12px rgba(255, 104, 20, .18); cursor: pointer; font: inherit; font-size: .82rem; font-weight: 750; white-space: nowrap; }
.agent-enter-button:hover:not(:disabled), .agent-leave-button:hover { filter: brightness(.96); transform: translateY(-1px); }
.agent-enter-button:disabled { border-color: #e2e8f0; color: #94a3b8; background: #e2e8f0; box-shadow: none; cursor: not-allowed; }
.agent-empty-state { display: grid; justify-items: center; gap: 8px; padding: 36px 16px; border: 1px dashed #d6e2f1; border-radius: 12px; color: #7183a1; text-align: center; }
.agent-empty-state > i { color: #94a3b8; font-size: 1.8rem; }
.agent-empty-state strong { color: #203653; font-size: .9rem; }
.agent-empty-state span { font-size: .78rem; }
.agent-session-card.is-connected { border-color: #bbf7d0; }
.agent-session-card.is-paused { border-color: #fed7aa; }
.agent-session-heading { display: flex; align-items: center; gap: 15px; }
.agent-session-icon { display: grid; width: 54px; height: 54px; flex: 0 0 54px; place-items: center; border-radius: 15px; color: #15803d; background: #dcfce7; font-size: 1.35rem; }
.agent-session-card.is-paused .agent-session-icon { color: #c2410c; background: #ffedd5; }
.agent-status-label { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 5px; color: #15803d; font-size: .7rem; font-weight: 800; }
.agent-status-label i { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .12); }
.agent-status-label.is-paused { color: #c2410c; }
.agent-status-label.is-paused i { background: #f97316; box-shadow: 0 0 0 3px rgba(249, 115, 22, .14); }
.agent-session-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0; padding: 18px; border: 1px solid #e5edf6; border-radius: 11px; background: #f8fbff; }
.agent-session-details > div { display: flex; flex-direction: column; gap: 6px; }
.agent-session-details small { color: #7183a1; font-size: .72rem; }
.agent-session-details strong { color: #203653; font-size: .86rem; }
.agent-session-details strong i { color: #2563eb; }
.agent-session-card > form:last-child:not(.agent-extension-form) { display: flex; justify-content: flex-end; margin: 0; }
.agent-leave-button { border-color: #fecaca; color: #b91c1c; background: #fff; box-shadow: none; }
.agent-session-controls { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #edf1f6; }
.agent-session-controls > form { display: flex; margin: 0; }
.agent-pause-form { align-items: flex-end; gap: 9px; }
.agent-pause-form label { display: grid; gap: 5px; color: #53627b; font-size: .72rem; font-weight: 750; }
.agent-pause-form select { min-width: 190px; min-height: 42px; padding: 8px 11px; border: 1px solid #dce5f1; border-radius: 8px; color: #24344d; background: #fff; font: inherit; font-size: .8rem; }
.agent-pause-form select:focus { outline: 2px solid rgba(249, 115, 22, .18); border-color: #fb923c; }
.agent-pause-button, .agent-resume-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; border: 1px solid #fed7aa; border-radius: 8px; color: #c2410c; background: #fff7ed; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 750; white-space: nowrap; }
.agent-pause-button:hover:not(:disabled), .agent-resume-button:hover { border-color: #fdba74; background: #ffedd5; }
.agent-pause-button:disabled { border-color: #e2e8f0; color: #94a3b8; background: #f1f5f9; cursor: not-allowed; }
.agent-resume-button { border-color: #bbf7d0; color: #15803d; background: #f0fdf4; }
.agent-resume-button:hover { border-color: #86efac; background: #dcfce7; }
.agent-pause-empty { align-self: center; margin: 0 auto 0 0; color: #7183a1; font-size: .76rem; }
.agent-pause-empty i { margin-right: 4px; }
.agent-footer-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 20px 0 0; color: #8997aa; font-size: .72rem; }
.agent-footer-note i { color: #16a34a; }
@media (max-width: 700px) {
    .agent-topbar { min-height: 66px; padding-inline: 16px; }
    .agent-brand { gap: 12px; font-size: .8rem; }
    .agent-brand img { width: 108px; }
    .agent-brand span { padding-left: 12px; }
    .agent-logout { width: 40px; height: 40px; justify-content: center; padding: 0; font-size: 0; }
    .agent-logout i { font-size: 1rem; }
    .agent-main-content { padding: 28px 16px 40px; }
    .agent-welcome { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 20px; }
    .agent-extension-list { grid-template-columns: 1fr; }
    .agent-form-footer { align-items: stretch; flex-direction: column; }
    .agent-enter-button { width: 100%; }
    .agent-session-details { grid-template-columns: 1fr; }
    .agent-session-card > form:last-child, .agent-leave-button { width: 100%; }
    .agent-session-controls { align-items: stretch; flex-direction: column; }
    .agent-session-controls > form, .agent-pause-form { width: 100%; }
    .agent-pause-form { align-items: stretch; flex-direction: column; }
    .agent-pause-form select, .agent-pause-button, .agent-resume-button { width: 100%; }
}
.trunk-info-trigger:hover { border-color: #93c5fd; color: #0c3976; background: #dbeafe; }
.trunk-info-modal { width: min(720px, calc(100% - 32px)); max-width: none; max-height: min(86vh, 760px); padding: 0; overflow: auto; border: 1px solid #dbe5f2; border-radius: 20px; color: #203653; background: #fff; box-shadow: 0 24px 80px rgba(15, 43, 82, .28); }
.trunk-info-modal::backdrop { background: rgba(16, 34, 57, .52); backdrop-filter: blur(3px); }
.trunk-info-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 26px 30px 18px; }
.trunk-info-modal-header span { color: #f97316; font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.trunk-info-modal-header h2 { margin: 7px 0 0; color: #0c3976; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.trunk-info-close { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 0; border-radius: 50%; color: #64748b; background: transparent; cursor: pointer; font-size: 1.1rem; }
.trunk-info-close:hover { color: #0c3976; background: #f1f5f9; }
.trunk-info-modal-body { padding: 0 30px; }
.trunk-info-content { position: relative; padding: 22px 22px 20px 76px; border: 1px solid #dce8f8; border-left: 4px solid #ff6900; border-radius: 14px; background: linear-gradient(135deg, #fffaf5, #fff 70%); }
.trunk-info-content[hidden] { display: none; }
.trunk-info-icon { position: absolute; top: 22px; left: 22px; display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 11px; color: #f05b00; background: #fff0e3; font-size: 1.1rem; }
.trunk-info-content h3 { margin: 0 0 8px; color: #0c3976; font-size: 1.1rem; }
.trunk-info-content p { margin: 0; color: #536985; font-size: .92rem; line-height: 1.6; }
.trunk-info-content ul { display: grid; gap: 8px; margin: 16px 0 0; padding-left: 18px; color: #334d6b; font-size: .88rem; line-height: 1.5; }
.trunk-info-content li::marker { color: #f97316; }
.trunk-info-modal-footer { display: flex; justify-content: flex-end; padding: 20px 30px 26px; }
.trunk-info-modal-footer button { min-height: 40px; }
.pjsip-enabled { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 5px 10px; border-radius: 7px; font-size: 13px; font-weight: 600; }
.pjsip-enabled.is-enabled { color: #16a34a; background: #e9f9ef; }
.pjsip-enabled.is-disabled { color: #dc2626; background: #fff0f0; }
.pjsip-enabled.is-direct { color: #66748a; background: #f1f3f6; }
.pjsip-actions { display: flex; align-items: center; gap: 6px; }
.pjsip-actions form { margin: 0; }
.pjsip-actions .icon-button { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid var(--admin-border); border-radius: 8px; color: #475569; background: #fff; text-decoration: none; cursor: pointer; }
.pjsip-actions .icon-button:hover { color: var(--admin-primary); border-color: #fdba74; }
.pjsip-actions .icon-button.danger:hover { color: #dc2626; border-color: #fca5a5; }
.pjsip-actions .pjsip-order-button { width: 28px; height: 28px; border-radius: 6px; font-size: .75rem; }
.pjsip-actions .pjsip-order-button:disabled { color: #cbd5e1; background: #f8fafc; cursor: not-allowed; }
.pjsip-empty { padding: 35px !important; color: var(--admin-muted); text-align: center; }
.pjsip-footnote { margin: 0; padding: 16px 24px 20px; color: var(--admin-muted); font-size: .82rem; }
.pjsip-footnote code, .pjsip-panel .panel-header code { color: #334155; overflow-wrap: anywhere; }
.pjsip-alert { margin: 0 0 16px; padding: 13px 16px; border: 1px solid #fecaca; border-radius: 9px; color: #991b1b; background: #fff7f7; font-size: .9rem; }
.pjsip-alert.info { border-color: #bfdbfe; color: #1e40af; background: #eff6ff; }
.pjsip-alert.success { border-color: #bbf7d0; color: #166534; background: #f0fdf4; }
.pjsip-form-panel .user-form { padding: 8px 24px 24px; }
.network-restart-notice { display: flex; align-items: flex-start; gap: 10px; }
.network-restart-notice i { margin-top: 2px; }
.network-settings-panel .panel-header { padding: 17px 20px; }
.network-settings-panel .user-form { padding: 8px 24px 24px; }
.network-list { display: grid; gap: 12px; }
.network-row { display: grid; grid-template-columns: minmax(0, 1fr) 42px; align-items: end; gap: 10px; }
.network-row .form-group { margin: 0; }
.network-remove-button { width: 42px; height: 42px; border-radius: 7px; }
.network-add-button { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; }
.form-section-card { margin: 0 0 16px; padding: 18px; border: 1px solid #dce8f8; border-radius: 15px; background: #fbfdff; }
.form-section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.form-section-number { display: inline-flex; width: 34px; height: 34px; flex: 0 0 34px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #ff8b00, #ff5a00); font-size: .72rem; font-weight: 800; }
.form-section-heading h3 { margin: 0 0 3px; color: #0c3976; font-size: 1rem; font-weight: 800; }
.form-section-heading p { margin: 0; color: #7183a1; font-size: .8rem; }
.form-section-card .form-grid { margin: 0; }
.form-section-card .form-checkbox { margin: 0; padding: 13px 14px; border: 1px solid #dce8f8; border-radius: 11px; background: #fff; }
.form-section-help { display: block; margin-top: 12px; color: #7183a1; }
.codec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.codec-priority-editor { display: grid; grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); align-items: center; gap: 14px; }
.codec-list-panel { display: flex; min-width: 0; flex-direction: column; gap: 10px; }
.codec-list-panel > label { display: flex; min-height: 22px; align-items: baseline; justify-content: space-between; gap: 8px; color: #263f60; font-size: .82rem; font-weight: 800; }
.codec-list-panel > label small { color: #7889a0; font-size: .7rem; font-weight: 500; text-align: right; }
.codec-list-panel select { width: 100%; min-height: 150px; padding: 6px; border: 1px solid #d4e0ef; border-radius: 10px; color: #2a405e; background: #fff; font: inherit; font-size: .8rem; }
.codec-list-panel select option { padding: 8px 7px; border-radius: 5px; }
.codec-list-panel select option:checked { color: #0c3976; background: #dcecff linear-gradient(0deg, #dcecff 0%, #dcecff 100%); }
.codec-priority-divider { display: flex; justify-content: center; color: #94a3b8; font-size: 1rem; }
.codec-list-action { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; gap: 7px; padding: 7px 10px; border: 1px solid #cfe0f4; border-radius: 8px; color: #16467d; background: #f5f9ff; cursor: pointer; font: inherit; font-size: .76rem; font-weight: 700; }
.codec-list-action:hover:not(:disabled), .codec-order-button:hover:not(:disabled) { border-color: #fdba74; color: #c2410c; background: #fff7ed; }
.codec-list-action:disabled, .codec-order-button:disabled { opacity: .45; cursor: not-allowed; }
.password-requirements { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 4px; }
.password-requirements[hidden] { display: none; }
.password-rule { display: inline-flex; align-items: center; gap: 5px; color: #64748b; font-size: .76rem; }
.password-rule i { color: #94a3b8; font-size: .85rem; }
.password-rule.is-valid { color: #15803d; }
.password-rule.is-valid i { color: #16a34a; }
.password-input-wrap { position: relative; width: 100%; }
.password-input-wrap input { padding-right: 44px; }
.password-visibility-toggle { position: absolute; top: 50%; right: 7px; display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; transform: translateY(-50%); border: 0; border-radius: 7px; color: #64748b; background: transparent; cursor: pointer; font-size: 1rem; }
.password-visibility-toggle:hover { color: #0c3976; background: #eff6ff; }
.password-visibility-toggle:focus-visible { outline: 2px solid #60a5fa; outline-offset: 1px; }
.codec-enabled-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.codec-order-actions { display: inline-flex; gap: 6px; }
.codec-order-button { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid #cfe0f4; border-radius: 8px; color: #16467d; background: #fff; cursor: pointer; }
.codec-option { display: flex; min-height: 62px; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid #dce5f1; border-radius: 11px; background: #fff; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.codec-option:has(input:checked) { border-color: #ff8b42; background: #fffaf6; box-shadow: 0 0 0 2px rgba(255, 104, 20, .08); }
.codec-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.codec-check { display: inline-flex; width: 20px; height: 20px; flex: 0 0 20px; align-items: center; justify-content: center; border: 1px solid #cbd5e1; border-radius: 5px; color: transparent; background: #fff; }
.codec-option input:checked + .codec-check { border-color: var(--admin-primary); color: #fff; background: var(--admin-primary); }
.codec-option input:focus-visible + .codec-check { outline: 3px solid rgba(37, 99, 235, .3); outline-offset: 2px; }
.codec-option strong, .codec-option small { display: block; }
.codec-option strong { color: #203653; font-size: .86rem; }
.codec-option small { margin-top: 2px; color: #7788a0; font-size: .74rem; }
.queue-features-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 16px; }
.queue-feature-card { min-width: 0; padding: 16px; border: 1px solid #d8e3f1; border-radius: 14px; background: #fff; }
.queue-feature-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.queue-feature-title label { display: block; margin: 0; color: #203653; font-size: .9rem; font-weight: 800; }
.queue-feature-title p { margin: 4px 0 0; color: #7183a1; font-size: .78rem; }
.queue-selected-count { flex: 0 0 auto; padding: 5px 10px; border: 1px solid #ffd2b2; border-radius: 999px; color: #c44b0b; background: #fff4ec; font-size: .76rem; font-weight: 800; }
.queue-calendar-selection { display: grid; gap: 8px; padding: 8px; border: 1px solid #d8e3f1; border-radius: 13px; background: #fff; }
.queue-calendar-list { display: grid; gap: 6px; }
.queue-calendar-choice { position: relative; min-height: 62px; padding: 9px 12px; border: 1px solid transparent; border-radius: 11px; background: #fff; transition: background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.queue-calendar-choice:hover { background: #f8fbff; }
.queue-calendar-choice.is-selected { border-color: #ffd1ae; background: #fff8f1; }
.queue-calendar-choice.is-dragging { opacity: .48; }
.queue-calendar-picker { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr) 32px 20px; align-items: center; gap: 12px; margin: 0; cursor: pointer; }
.queue-calendar-choice:not(.is-selected) .queue-calendar-picker { grid-template-columns: 26px minmax(0, 1fr); }
.queue-calendar-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.queue-calendar-check { display: inline-flex; width: 25px; height: 25px; align-items: center; justify-content: center; border: 2px solid #c5d0df; border-radius: 7px; color: transparent; background: #fff; }
.queue-calendar-choice.is-selected .queue-calendar-check { border-color: #ff7417; color: #fff; background: #ff7417; }
.queue-calendar-picker input:focus-visible + .queue-calendar-check { outline: 3px solid rgba(37, 99, 235, .28); outline-offset: 2px; }
.queue-calendar-copy { display: block; min-width: 0; }
.queue-calendar-copy strong, .queue-calendar-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-calendar-copy strong { color: #203653; font-size: .84rem; font-weight: 800; }
.queue-calendar-copy small { margin-top: 2px; color: #7a8ba5; font-size: .74rem; }
.queue-calendar-order { display: none; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: #103b78; font-size: .8rem; font-weight: 800; }
.queue-calendar-choice.is-selected .queue-calendar-order { display: inline-flex; }
.queue-calendar-grip { display: none; align-items: center; justify-content: center; color: #a9bad0; cursor: grab; font-size: 1.1rem; }
.queue-calendar-choice.is-selected .queue-calendar-grip { display: inline-flex; }
.queue-calendar-choice.is-selected .queue-calendar-grip:active { cursor: grabbing; }
.queue-calendar-target { display: none; grid-template-columns: minmax(120px, .45fr) minmax(180px, 1fr); align-items: center; gap: 10px; margin: 10px 0 1px 38px; }
.queue-calendar-choice.is-selected .queue-calendar-target { display: grid; }
.queue-calendar-target label { margin: 0; color: #536783; font-size: .76rem; font-weight: 700; }
.queue-calendar-target select { min-height: 38px; padding: 7px 10px; border: 1px solid #d7e2f0; border-radius: 9px; background: #fff; color: #203653; font-size: .8rem; }
.queue-calendar-empty { margin: 0; padding: 12px; color: #7a8ba5; font-size: .78rem; }
.queue-feature-help { display: block; margin-top: 10px; color: #7183a1; font-size: .76rem; }
.queue-record-card { display: flex; flex-direction: column; }
.queue-record-control { display: grid; grid-template-columns: 54px minmax(0, 1fr) 54px; align-items: center; gap: 12px; padding: 14px; border: 1px solid #e0e8f2; border-radius: 13px; background: #fff; }
.queue-record-icon { display: inline-flex; width: 50px; height: 50px; align-items: center; justify-content: center; border-radius: 14px; color: #fb6b12; background: #fff2e9; font-size: 1.25rem; }
.queue-record-copy strong, .queue-record-copy small { display: block; }
.queue-record-copy strong { color: #203653; font-size: .88rem; font-weight: 800; }
.queue-record-copy small { margin-top: 3px; color: #7183a1; font-size: .75rem; }
.queue-toggle { position: relative; display: inline-flex; width: 52px; height: 30px; align-items: center; margin: 0; cursor: pointer; }
.queue-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.queue-toggle-track { position: relative; display: block; width: 52px; height: 30px; border-radius: 999px; background: #cbd5e1; transition: background .16s ease; }
.queue-toggle-track::after { position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(15, 23, 42, .2); content: ''; transition: transform .16s ease; }
.queue-toggle input:checked + .queue-toggle-track { background: #ff7417; }
.queue-toggle input:checked + .queue-toggle-track::after { transform: translateX(22px); }
.queue-toggle input:focus-visible + .queue-toggle-track { outline: 3px solid rgba(37, 99, 235, .28); outline-offset: 2px; }
.queue-record-status { display: none; width: fit-content; margin: 10px 0 0; padding: 5px 10px; border: 1px solid #a7f3c4; border-radius: 999px; color: #15803d; background: #effdf4; font-size: .76rem; font-weight: 800; }
.queue-record-status.is-active { display: inline-flex; align-items: center; gap: 6px; }
.queue-record-notice { display: flex; align-items: flex-start; gap: 10px; margin-top: 13px; padding: 12px; border: 1px solid #cbdcff; border-radius: 12px; color: #234a91; background: #f1f6ff; font-size: .8rem; line-height: 1.45; }
.queue-record-notice i { margin-top: 2px; }
.calendar-entry { border: 1px solid #d8e3f1; border-radius: 14px; padding: 15px; margin: 12px 0; background: #fff; box-shadow: 0 2px 8px rgba(15, 42, 75, .025); }
.calendar-entry-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.calendar-rule-number { display: inline-flex; width: 32px; height: 32px; flex: 0 0 32px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: #103b78; font-size: .75rem; font-weight: 800; }
.calendar-entry-heading > div { min-width: 0; }
.calendar-entry-heading strong, .calendar-entry-heading small { display: block; }
.calendar-entry-heading strong { color: #203653; font-size: .86rem; }
.calendar-entry-heading small { margin-top: 2px; color: #7a8ba5; font-size: .74rem; }
.calendar-entry-heading .calendar-remove { display: inline-flex; min-height: 34px; align-items: center; gap: 6px; margin-left: auto; padding: 6px 10px; border: 1px solid #fecaca; border-radius: 8px; color: #dc2626; background: #fff; cursor: pointer; font: inherit; font-size: .74rem; font-weight: 700; }
.calendar-entry-heading .calendar-remove:hover { border-color: #fca5a5; background: #fff5f5; }
.pjsip-dtmf-field { max-width: 500px; }
.form-actions .button-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.user-form .button-primary:disabled { color: #94a3b8; background: #e2e8f0; opacity: 1; cursor: not-allowed; transform: none; box-shadow: none; }
.pjsip-form-panel .form-actions { display: flex; justify-content: flex-end; gap: 12px; }
.pjsip-form-panel .form-actions a { display: inline-flex; align-items: center; text-decoration: none; }
.pjsip-table td, .pjsip-table th { vertical-align: middle; }
@media (max-width: 768px) {
    .list-table-toolbar { justify-content: flex-start; flex-wrap: wrap; padding: 12px 16px; }
    .list-table-toolbar.has-search { justify-content: flex-end; }
    .list-table-toolbar.has-search .user-search { flex: 1 1 280px; }
    .page-heading:has(.pjsip-apply-button) { align-items: flex-start; flex-direction: column; }
    .page-heading:has(.pjsip-apply-button) .page-actions { width: 100%; flex-wrap: wrap; }
    .pjsip-apply-modal-footer { align-items: stretch; flex-direction: column-reverse; }
    .pjsip-apply-modal-footer > *, .pjsip-apply-modal-footer form, .pjsip-apply-modal-footer form button { width: 100%; justify-content: center; }
    .pjsip-panel .panel-header { align-items: flex-start; flex-direction: column; }
    .pjsip-panel .user-search { width: 100%; }
    .pjsip-dashboard-legend { grid-template-columns: 1fr; }
    .pjsip-dashboard-legend > div + div { padding-top: 15px; padding-left: 0; border-top: 1px solid #e8edf3; border-left: 0; }
    .pjsip-table-footer { align-items: flex-start; flex-direction: column; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
    .pjsip-table-footer .pagination { flex-wrap: wrap; }
    .pjsip-form-panel .user-form { padding: 8px 16px 18px; }
    .network-settings-panel .user-form { padding: 8px 16px 18px; }
    .pjsip-form-panel .form-actions { justify-content: stretch; }
    .pjsip-form-panel .form-actions > * { flex: 1; justify-content: center; }
    .form-section-card { padding: 15px; }
    .codec-grid { grid-template-columns: 1fr; }
    .codec-priority-editor { grid-template-columns: 1fr; }
    .codec-priority-divider { transform: rotate(90deg); }
    .codec-list-panel select { min-height: 120px; }
    .queue-features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
    .queue-calendar-choice { padding-right: 8px; padding-left: 8px; }
    .queue-calendar-picker { grid-template-columns: 24px minmax(0, 1fr) 28px 16px; gap: 8px; }
    .queue-calendar-choice:not(.is-selected) .queue-calendar-picker { grid-template-columns: 24px minmax(0, 1fr); }
    .queue-calendar-target { grid-template-columns: 1fr; gap: 5px; margin-left: 32px; }
    .queue-record-control { grid-template-columns: 46px minmax(0, 1fr) 48px; gap: 8px; padding: 11px; }
    .queue-record-icon { width: 42px; height: 42px; }
    .queue-toggle, .queue-toggle-track { width: 46px; }
    .queue-toggle input:checked + .queue-toggle-track::after { transform: translateX(16px); }
    .calendar-entry-heading { align-items: flex-start; }
    .calendar-entry-heading .calendar-remove { padding: 7px; }
    .calendar-entry-heading .calendar-remove span { display: none; }
    .trunk-info-modal-header { padding: 22px 20px 16px; }
    .trunk-info-modal-body { padding: 0 20px; }
    .trunk-info-content { padding: 70px 18px 18px; }
    .trunk-info-icon { top: 18px; left: 18px; }
    .trunk-info-modal-footer { padding: 16px 20px 20px; }
}

/* =========================================================
   ESTADO DO SISTEMA - DATA / HORA
   ========================================================= */

.system-time-panel {
    margin-top: 20px;
}


.system-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid #e7edf3;
    border-radius: 12px;
    background: #e7edf3;
}


.system-status-item {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-height: 92px;
    padding: 18px 20px;
    background: #fff;
}


.system-status-item > span:first-child {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}


.system-status-item > strong {
    color: #17233b;
    font-size: 15px;
}

.datetime-config-panel .panel-body { padding: 22px; }
.datetime-config-card .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.datetime-config-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.datetime-config-card { min-width: 0; padding: 20px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.datetime-config-card .system-subsection-header { margin: 0 0 18px; }
.datetime-config-card .system-subsection-header h3 { margin: 0 0 5px; color: #17243a; font-size: 1rem; }
.datetime-config-card .system-subsection-header p { margin: 0; color: #697a94; font-size: .78rem; line-height: 1.5; }
.datetime-server-list { display: grid; gap: 9px; }
.datetime-server-row { display: flex; align-items: flex-start; gap: 9px; }
.datetime-server-field { display: grid; flex: 1; min-width: 0; gap: 5px; }
.datetime-server-row input { width:100%; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid #d9e1eb; border-radius: 7px; color: #27364d; background: #fff; font: inherit; font-size: .82rem; }
.datetime-server-row input:focus { outline: 0; border-color: #ff6814; box-shadow: 0 0 0 3px rgba(255,104,20,.1); }
.datetime-server-row.has-error input { border-color:#ef4444; box-shadow:0 0 0 2px rgba(239,68,68,.1); }
.datetime-input-error { color:#dc2626; font-size:.7rem; line-height:1.3; }
.datetime-input-error[hidden] { display:none; }
.datetime-remove-server { width: 40px; height: 40px; flex: 0 0 40px; }
.datetime-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.datetime-form-actions button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 13px; border-radius: 8px; cursor: pointer; font: inherit; font-size: .78rem; font-weight: 700; }
.datetime-form-actions .button-primary { border: 1px solid #ff6814; color: #fff; background: linear-gradient(90deg, #ff741f, #f55a12); }
.datetime-form-actions .button-primary:hover { filter: brightness(.96); }
.datetime-form-actions .button-primary:disabled,
.datetime-form-actions .button-primary:disabled:hover { cursor:not-allowed; border-color:#cbd5e1; color:#64748b; background:#e2e8f0; filter:none; box-shadow:none; }
.datetime-form-actions .button-secondary { border: 1px solid #d9e1eb; color: #42536d; background: #fff; }
.datetime-form-actions .button-secondary:disabled { opacity: .5; cursor: not-allowed; }
.datetime-config-footnote { display: flex; align-items: center; gap: 8px; margin: 0 22px 20px; color: #697a94; font-size: .75rem; }
.datetime-config-footnote i { color: #ff6814; }
.datetime-config-footnote code, .datetime-config-card code { color: #31557a; }


/* Alertas */

.system-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 12px;
}


.system-alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 10px;
    font-size: 18px;
}


.system-alert strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}


.system-alert p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}


/* Alerta vermelho */

.system-alert-danger {
    border: 1px solid #fecaca;
    background: #fff7f7;
    color: #991b1b;
}


.system-alert-danger .system-alert-icon {
    background: #fee2e2;
    color: #dc2626;
}


/* Alerta amarelo */

.system-alert-warning {
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
}


.system-alert-warning .system-alert-icon {
    background: #fef3c7;
    color: #d97706;
}


/* Responsivo */

.extension-dial-code {
    display: grid;
    gap: 4px;
    margin-top: 3px;
    color: #53657d;
    font-size: .74rem;
    font-weight: 600;
}

.extension-dial-code[hidden] {
    display: none;
}

.extension-dial-code input {
    width: 100%;
    min-width: 0;
    padding: 6px 9px;
    border: 1px solid #d5dfeb;
    border-radius: 7px;
    background: #fff;
    color: #1e293b;
    font: inherit;
}

.extension-dial-code input:focus {
    outline: 0;
    border-color: #ff7417;
    box-shadow: 0 0 0 3px rgba(255, 116, 23, .13);
}

@media (max-width: 768px) {

    .system-status-grid {
        grid-template-columns: 1fr;
    }

    .datetime-config-grid { grid-template-columns: 1fr; }
    .datetime-form-actions { align-items: stretch; flex-direction: column; }
    .datetime-form-actions button { width: 100%; }

}
