.esms-shell-content-card > :last-child {
    margin-bottom: 0;
}

.esms-shell-content-card .table-responsive:last-child,
.esms-shell-content-card .card:last-child,
.esms-shell-content-card .panel:last-child {
    margin-bottom: 0;
}

.esms-shell-content-card > .content,
.esms-shell-content-card > .card,
.esms-shell-content-card > .small-box {
    max-width: 100%;
}

.esms-operational-panel {
    display: grid;
    gap: 1rem;
}

.esms-operational-toolbar,
.esms-operational-table-shell {
    border: 1px solid var(--esms-shell-border, #dce6f0);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.96));
    box-shadow: 0 0.65rem 1.4rem rgba(15, 23, 42, 0.06);
}

.esms-operational-toolbar {
    padding: 1.15rem;
}

.esms-operational-toolbar-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.esms-operational-toolbar-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--esms-shell-title, #18324a);
}

.esms-operational-toolbar-copy {
    margin: 0.25rem 0 0;
    color: var(--esms-shell-muted, #6f8296);
    font-size: 0.84rem;
    line-height: 1.6;
    max-width: 58rem;
}

.esms-operational-loading {
    display: none;
    align-items: center;
    gap: 0.45rem;
    color: var(--esms-shell-muted, #6c757d);
    font-size: 0.84rem;
    font-weight: 600;
}

.esms-operational-loading.is-visible {
    display: inline-flex;
}

.esms-operational-results.is-loading {
    opacity: 0.56;
    transition: opacity 0.2s ease;
}

.esms-operational-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}

.esms-operational-summary-card {
    min-height: 112px;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1rem;
    background:
        radial-gradient(circle at top right, rgba(148, 163, 184, 0.08), transparent 38%),
        linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 0.4rem 1rem rgba(15, 23, 42, 0.05);
}

.esms-operational-summary-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6d84a0;
    margin-bottom: 0.25rem;
}

.esms-operational-summary-value {
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 800;
    color: var(--esms-shell-title, #18324a);
}

.esms-operational-summary-copy {
    margin-top: 0.42rem;
    color: var(--esms-shell-muted, #6f8296);
    font-size: 0.82rem;
}

.esms-operational-table-shell {
    overflow: hidden;
}

.esms-operational-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.96), rgba(244, 248, 252, 0.92));
}

.esms-operational-table-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--esms-shell-title, #18324a);
}

.esms-operational-table-copy {
    margin: 0.22rem 0 0;
    color: var(--esms-shell-muted, #6f8296);
    font-size: 0.82rem;
}

.esms-operational-table-shell .table {
    margin-bottom: 0;
}

.esms-operational-table-shell thead th {
    padding: 0.72rem 0.8rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    background: #f5f8fb;
}

.esms-operational-table-shell tbody td {
    padding: 0.8rem;
}

.esms-operational-table-shell .app-table-primary,
.esms-operational-table-shell .app-table-subject {
    color: var(--esms-shell-title, #18324a);
}

.esms-operational-table-shell .app-table-meta {
    color: var(--esms-shell-muted, #6f8296);
    font-size: 0.8rem;
}

.esms-operational-empty {
    padding: 3rem 1rem !important;
    text-align: center;
    color: var(--esms-shell-muted, #6f8296);
    font-size: 0.9rem;
}

.esms-operational-pagination {
    padding: 0.95rem 1.05rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(248, 251, 253, 0.9);
}

@media (max-width: 991.98px) {
    .esms-operational-toolbar {
        padding: 1rem;
    }

    .esms-operational-table-head {
        padding: 0.9rem 1rem;
    }
}

.app-form-shell {
    border: 1px solid var(--esms-shell-border, #dce6f0);
    border-radius: 1.1rem;
    overflow: hidden;
    box-shadow: 0 1rem 2.2rem rgba(15, 23, 42, 0.09);
    background: #fff;
}

.app-form-shell.is-modal {
    display: flex;
    flex-direction: column;
    max-height: min(90vh, 980px);
}

.app-form-hero {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 30%),
        linear-gradient(135deg, #0f766e, #0b5f92 58%, #0b4c74);
    color: #fff;
    padding: 0.95rem 1.2rem 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.app-form-hero-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.app-form-title {
    margin: 0;
    font-size: 1.7rem;
    line-height: 1.08;
    font-weight: 700;
    color: #fff;
}

.app-form-subtitle {
    margin: 0.4rem 0 0;
    color: rgba(240, 249, 255, 0.88);
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 780px;
}

.app-form-hero .btn {
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.app-form-hero .btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.app-form-body {
    padding: 1rem;
    background: linear-gradient(180deg, #fbfdff, #f6f9fc);
}

.app-form-shell.is-modal .app-form-body {
    overflow-y: auto;
}

.app-form-panel {
    border: 1px solid var(--esms-shell-border, #dce6f0);
    border-radius: 1rem;
    overflow: hidden;
    height: 100%;
    background: #fff;
    box-shadow: 0 0.55rem 1.25rem rgba(15, 23, 42, 0.05);
}

.app-form-panel .card-header {
    padding: 0.9rem 1rem;
    background: linear-gradient(180deg, #f8fbfe, #f2f7fb);
    border-bottom: 1px solid var(--esms-shell-border, #dce6f0);
}

.app-form-panel .card-body {
    padding: 1rem;
}

.app-form-kicker {
    display: block;
    margin-bottom: 0.2rem;
    color: #6d84a0;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    font-weight: 700;
    text-transform: uppercase;
}

.app-form-panel-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--esms-shell-title, #18324a);
}

.app-form-shell .form-label {
    font-weight: 600;
    color: #22384d;
    margin-bottom: 0.45rem;
}

.app-form-shell .form-control,
.app-form-shell .form-select {
    min-height: 42px;
    border-radius: 0.7rem;
    border-color: #d4dde7;
    box-shadow: none;
}

.app-form-shell textarea.form-control {
    min-height: 120px;
}

.app-form-shell .form-control:focus,
.app-form-shell .form-select:focus {
    border-color: #9db9de;
    box-shadow: 0 0 0 0.18rem rgba(13, 110, 253, 0.08);
}

.app-form-shell .form-text,
.app-form-shell .text-muted.small {
    color: var(--esms-shell-muted, #6f8296) !important;
}

.app-form-shell .invalid-feedback {
    font-size: 0.8rem;
}

.archive-source-card,
.archive-form-section {
    border: 1px solid rgba(204, 218, 232, 0.92);
    border-radius: 1.05rem;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 32%),
        linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 0.65rem 1.35rem rgba(15, 23, 42, 0.055);
}

.archive-source-card {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
}

.archive-source-head,
.archive-section-heading,
.archive-parent-toggle,
.archive-linked-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.archive-source-badge {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.74rem;
    font-weight: 800;
}

.archive-source-copy {
    max-width: 64rem;
    color: #597089;
    font-size: 0.86rem;
    line-height: 1.65;
}

.archive-parent-toggle {
    align-items: center;
    padding: 0.75rem 0.85rem;
    border: 1px dashed #cbdced;
    border-radius: 0.9rem;
    background: rgba(248, 251, 255, 0.86);
}

.archive-parent-panel {
    padding: 0.9rem;
    border: 1px solid rgba(203, 220, 237, 0.9);
    border-radius: 0.95rem;
    background: #fff;
}

.archive-linked-summary {
    padding: 0.9rem;
    border-radius: 0.95rem;
    background: rgba(248, 251, 255, 0.9);
    border: 1px dashed #d7e3ef;
}

.archive-file-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.65rem;
}

.archive-file-chip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.55rem;
    row-gap: 0.1rem;
    align-items: center;
    padding: 0.75rem 0.85rem;
    border-radius: 0.85rem;
    border: 1px solid #dce8f4;
    background: #fff;
    color: #27435d;
}

.archive-file-chip i {
    grid-row: span 2;
    color: #2563eb;
}

.archive-file-chip span,
.archive-file-chip small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.archive-file-chip span {
    font-weight: 700;
    font-size: 0.84rem;
}

.archive-file-chip small {
    color: #6f8296;
}

.archive-form-flow {
    display: grid;
    gap: 1rem;
}

.archive-form-section {
    padding: 1.05rem 1.1rem;
}

.archive-form-section.is-primary {
    border-color: rgba(13, 148, 136, 0.22);
    background:
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.13), transparent 34%),
        linear-gradient(180deg, #ffffff, #f2fbfa);
}

.archive-section-heading {
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0.95rem;
}

.archive-section-icon {
    width: 2.45rem;
    height: 2.45rem;
    flex: 0 0 2.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    color: #0f766e;
    background: linear-gradient(135deg, #e0f7f3, #eef6ff);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.08);
}

.archive-section-heading h5 {
    margin: 0;
    color: var(--esms-shell-title, #18324a);
    font-size: 1rem;
    font-weight: 800;
}

.archive-section-heading p {
    margin: 0.2rem 0 0;
    color: var(--esms-shell-muted, #6f8296);
    font-size: 0.84rem;
    line-height: 1.55;
}

.archive-title-input {
    min-height: 150px !important;
    font-size: 0.98rem;
    line-height: 1.65;
    background: #fff;
}

.archive-helper-note {
    padding: 0.75rem 0.85rem;
    border-radius: 0.8rem;
    border: 1px dashed #cbdced;
    background: rgba(239, 246, 255, 0.65);
    color: #526f8a;
    font-size: 0.83rem;
    line-height: 1.55;
}

@media (max-width: 767.98px) {
    .archive-source-card,
    .archive-form-section {
        padding: 0.9rem;
    }

    .archive-section-heading {
        align-items: flex-start;
    }
}

.app-form-note {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    border-radius: 0.95rem;
    background: linear-gradient(180deg, #eef7ff, #e4f1ff);
    border: 1px solid #cfe0f5;
    color: #24496c;
}

.app-form-note i {
    margin-top: 0.2rem;
    color: #0d6efd;
}

.app-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    padding: 1rem 0 0;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.app-form-footer.is-sticky {
    position: sticky;
    bottom: 0;
    z-index: 30;
    margin-inline: -1rem;
    margin-bottom: -1rem;
    padding: 0.95rem 1rem;
    background: rgba(248, 251, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.app-form-footer .btn {
    min-height: 44px;
    padding-inline: 1.15rem;
    border-radius: 0.85rem;
    font-weight: 700;
}

.app-form-shell.form-has-floating-guides .app-form-panel,
.app-form-shell.form-has-floating-guides .app-form-panel .card-body,
.app-form-shell.form-has-floating-guides .floating-hover-guide {
    overflow: visible;
}

.app-form-shell .floating-hover-guide,
.form-has-floating-guides .floating-hover-guide {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.app-form-shell .floating-hover-guide-label,
.form-has-floating-guides .floating-hover-guide-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.app-form-shell .inline-guide-button,
.form-has-floating-guides .inline-guide-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    border: 1px solid #d8e6fb;
    background: linear-gradient(135deg, #eff6ff, #f8fbff);
    color: #2563eb;
    font-size: 0.78rem;
    box-shadow: 0 0.22rem 0.55rem rgba(37, 99, 235, 0.1);
    cursor: pointer;
    padding: 0;
}

.app-form-shell .inline-guide-kicker,
.form-has-floating-guides .inline-guide-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 0.25rem;
}

.app-form-shell .inline-guide-title,
.form-has-floating-guides .inline-guide-title {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.app-form-shell .inline-guide-subtitle,
.form-has-floating-guides .inline-guide-subtitle {
    display: block;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #64748b;
    margin-bottom: 0.8rem;
}

.app-form-shell .inline-guide-table,
.form-has-floating-guides .inline-guide-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 0.85rem;
    background: #fff;
    border: 1px solid #dce6f0;
}

.app-form-shell .inline-guide-table th,
.app-form-shell .inline-guide-table td,
.form-has-floating-guides .inline-guide-table th,
.form-has-floating-guides .inline-guide-table td {
    padding: 0.6rem 0.7rem;
    border-bottom: 1px solid #e6edf5;
    font-size: 0.83rem;
    text-align: left;
}

.app-form-shell .inline-guide-table th,
.form-has-floating-guides .inline-guide-table th {
    background: #f8fbfe;
    color: #476277;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.72rem;
}

.app-form-shell .inline-guide-table tr:last-child td,
.form-has-floating-guides .inline-guide-table tr:last-child td {
    border-bottom: 0;
}

.app-form-shell .inline-guide-table code,
.form-has-floating-guides .inline-guide-table code {
    background: #f8fbff;
    border: 1px solid #dce8f8;
    border-radius: 0.4rem;
    padding: 0.08rem 0.35rem;
    color: #c2410c;
}

.app-form-shell .floating-hover-guide-panel,
.form-has-floating-guides .floating-hover-guide-panel {
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: min(640px, calc(100vw - 3rem));
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(216, 228, 242, 0.95);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.98));
    box-shadow: 0 1.25rem 3rem rgba(15, 23, 42, 0.18);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 120;
    max-height: min(68vh, 640px);
    overflow-y: auto;
    overflow-x: auto;
    scrollbar-gutter: stable both-edges;
}

.app-form-shell .floating-hover-guide-panel::before,
.form-has-floating-guides .floating-hover-guide-panel::before {
    content: "";
    position: absolute;
    top: -8px;
    left: calc(50% - 7px);
    width: 14px;
    height: 14px;
    background: #fbfdff;
    border-left: 1px solid #d8e4f2;
    border-top: 1px solid #d8e4f2;
    transform: rotate(45deg);
}

.app-form-shell .floating-hover-guide:hover .floating-hover-guide-panel,
.app-form-shell .floating-hover-guide:focus-within .floating-hover-guide-panel,
.form-has-floating-guides .floating-hover-guide:hover .floating-hover-guide-panel,
.form-has-floating-guides .floating-hover-guide:focus-within .floating-hover-guide-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.app-form-shell .inline-guide-section + .inline-guide-section,
.form-has-floating-guides .inline-guide-section + .inline-guide-section {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px dashed #d9e4ee;
}

.app-form-shell .inline-guide-list,
.form-has-floating-guides .inline-guide-list {
    margin: 0;
    color: #5f7388;
    font-size: 0.84rem;
    line-height: 1.6;
}

.app-form-shell .inline-guide-code,
.app-form-shell .number-guide-pattern code,
.form-has-floating-guides .inline-guide-code,
.form-has-floating-guides .number-guide-pattern code {
    color: #475569;
    background: #f8fafc;
    border: 1px solid #dce6f0;
    border-radius: 0.35rem;
    padding: 0.06rem 0.28rem;
}

.app-form-shell .number-guide-label,
.form-has-floating-guides .number-guide-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5f7388;
    margin-bottom: 0.4rem;
}

.app-form-shell .number-guide-pattern,
.app-form-shell .number-guide-example,
.form-has-floating-guides .number-guide-pattern,
.form-has-floating-guides .number-guide-example {
    font-size: 0.84rem;
    line-height: 1.65;
    color: #5f7388;
}

.app-form-shell .number-guide-example strong,
.form-has-floating-guides .number-guide-example strong {
    color: #26415c;
}

.app-form-shell .number-guide-example code,
.form-has-floating-guides .number-guide-example code {
    color: #db2777;
    background: #fff7fb;
    border: 1px solid #f5d0e3;
    border-radius: 0.35rem;
    padding: 0.06rem 0.28rem;
}

.form-has-floating-guides .guide-panel-left .floating-hover-guide-panel {
    left: auto;
    right: 0;
}

.form-has-floating-guides .guide-panel-left .floating-hover-guide-panel::before {
    left: auto;
    right: 1.2rem;
}

@media (max-width: 991.98px) {
    .app-form-hero-grid,
    .app-form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .app-form-title {
        font-size: 1.45rem;
    }

    .app-form-shell.form-has-floating-guides.is-modal .app-form-body {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .app-form-shell .floating-hover-guide-panel,
    .form-has-floating-guides .floating-hover-guide-panel {
        left: 0;
        transform: translateY(8px);
        width: min(92vw, 520px);
        overflow-x: scroll;
    }

    .app-form-shell .floating-hover-guide-panel::before,
    .form-has-floating-guides .floating-hover-guide-panel::before {
        left: 1.4rem;
    }

    .app-form-shell .floating-hover-guide:hover .floating-hover-guide-panel,
    .app-form-shell .floating-hover-guide:focus-within .floating-hover-guide-panel,
    .form-has-floating-guides .floating-hover-guide:hover .floating-hover-guide-panel,
    .form-has-floating-guides .floating-hover-guide:focus-within .floating-hover-guide-panel {
        transform: translateY(0);
    }

    .app-form-shell .inline-guide-table,
    .form-has-floating-guides .inline-guide-table {
        min-width: 420px;
    }

    .form-has-floating-guides .guide-panel-left .floating-hover-guide-panel {
        left: -1rem;
        right: auto;
    }

    .form-has-floating-guides .guide-panel-left .floating-hover-guide-panel::before {
        left: 1.2rem;
        right: auto;
    }

    .app-form-shell .floating-hover-guide-panel::-webkit-scrollbar,
    .form-has-floating-guides .floating-hover-guide-panel::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    .app-form-shell .floating-hover-guide-panel::-webkit-scrollbar-track,
    .form-has-floating-guides .floating-hover-guide-panel::-webkit-scrollbar-track {
        background: rgba(226, 232, 240, 0.65);
        border-radius: 999px;
    }

    .app-form-shell .floating-hover-guide-panel::-webkit-scrollbar-thumb,
    .form-has-floating-guides .floating-hover-guide-panel::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, rgba(59, 130, 246, 0.8), rgba(37, 99, 235, 0.9));
        border-radius: 999px;
        border: 2px solid transparent;
        background-clip: padding-box;
    }
}

.esms-settings-page {
    position: relative;
    z-index: 1;
}

.esms-settings-nav {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.esms-settings-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.esms-settings-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.68rem 0.95rem;
    border-radius: 999px;
    border: 1px solid #dce6f0;
    background: #fff;
    color: #4d647d;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0.2rem 0.45rem rgba(15, 23, 42, 0.04);
}

.esms-settings-chip.active {
    background: linear-gradient(135deg, #ebf4ff, #eefbf7);
    border-color: #c9ddee;
    color: #0f4c81;
}

.esms-settings-section {
    display: grid;
    gap: 1rem;
}

.esms-settings-panel {
    border: 1px solid var(--esms-shell-border, #dce6f0);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0.55rem 1.25rem rgba(15, 23, 42, 0.06);
    height: 100%;
    overflow: hidden;
}

.esms-settings-panel-head {
    padding: 1.1rem 1.15rem 0.95rem;
    border-bottom: 1px solid var(--esms-shell-border, #dce6f0);
    background: linear-gradient(180deg, #fbfdff, #f4f8fc);
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.esms-settings-panel-icon {
    width: 2.55rem;
    height: 2.55rem;
    flex: 0 0 2.55rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 0.45rem 1rem rgba(15, 23, 42, 0.08);
}

.esms-settings-panel-head h4 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--esms-shell-title, #18324a);
}

.esms-settings-panel-head p {
    margin: 0.25rem 0 0;
    color: var(--esms-shell-muted, #6f8296);
    font-size: 0.84rem;
    line-height: 1.55;
}

.esms-settings-panel-body {
    padding: 1.15rem;
}

.esms-settings-helper {
    border: 1px dashed #dce6f0;
    border-radius: 0.9rem;
    background: linear-gradient(180deg, #fbfdff, #f8fafc);
    padding: 1rem 1.05rem;
}

.esms-settings-helper code {
    background: #fff;
    padding: 0.15rem 0.4rem;
    border-radius: 0.35rem;
    color: #d63384;
    font-size: 0.85em;
    border: 1px solid #e9ecef;
}

.esms-settings-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.esms-settings-preview-box {
    border: 1px solid #dce6f0;
    border-radius: 0.75rem;
    padding: 1rem;
    background: linear-gradient(180deg, #fbfdff, #f7fbff);
}

.esms-settings-preview-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.esms-settings-preview-value {
    font-size: 1rem;
    font-weight: 700;
    color: #343a40;
    word-break: break-word;
}

@media (max-width: 767.98px) {
    .esms-settings-preview-grid {
        grid-template-columns: 1fr;
    }
}

.esms-dashboard-shell {
    display: grid;
    gap: 1rem;
}

.esms-dashboard-summary-shell {
    display: grid;
    gap: 0.75rem;
}

.esms-dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.esms-dashboard-summary-card {
    grid-column: span 3;
    min-height: 108px;
    border: 1px solid var(--esms-shell-border, #dce6f0);
    border-radius: 1.15rem;
    background:
        radial-gradient(circle at top right, rgba(148, 163, 184, 0.08), transparent 34%),
        linear-gradient(180deg, #ffffff, #f8fbff);
    padding: 1.05rem 1.1rem;
    box-shadow: 0 0.85rem 1.8rem rgba(15, 23, 42, 0.06);
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.esms-dashboard-summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.1);
    border-color: #d4dfeb;
}

.esms-dashboard-summary-icon {
    width: 54px;
    height: 54px;
    border-radius: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.12rem;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.esms-dashboard-summary-content {
    min-width: 0;
    display: grid;
    gap: 0.22rem;
}

.esms-dashboard-summary-label {
    color: #60758d;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
}

.esms-dashboard-summary-value {
    color: var(--esms-shell-title, #18324a);
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    margin-top: 0.05rem;
    letter-spacing: -0.03em;
}

.esms-dashboard-summary-note {
    margin-top: 0.15rem;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.35;
}

.esms-dashboard-panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(290px, 0.95fr);
    gap: 1rem;
}

.esms-dashboard-panel {
    border: 1px solid var(--esms-shell-border, #dce6f0);
    border-radius: 1.05rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.96));
    box-shadow: 0 0.65rem 1.4rem rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.esms-dashboard-panel-head {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.96), rgba(244, 248, 252, 0.92));
}

.esms-dashboard-panel-head h4 {
    margin: 0;
    color: var(--esms-shell-title, #18324a);
    font-size: 1rem;
    font-weight: 800;
}

.esms-dashboard-panel-body {
    padding: 1rem 1.15rem 1.15rem;
}

.esms-dashboard-filterbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.esms-dashboard-filterbar-input,
.esms-dashboard-filterbar-select {
    height: 40px;
    border: 1px solid #d7e0ea;
    border-radius: 0.8rem;
    background: #fff;
    padding: 0 0.9rem;
    color: #425466;
}

.esms-dashboard-filterbar-input {
    min-width: 220px;
}

.esms-dashboard-status-list {
    display: grid;
    gap: 0.7rem;
}

.esms-dashboard-status-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.86rem;
}

.esms-dashboard-status-name {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--esms-shell-title, #18324a);
    font-weight: 600;
}

.esms-dashboard-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.esms-dashboard-status-percentage {
    color: var(--esms-shell-muted, #6f8296);
    font-weight: 600;
}

.esms-dashboard-status-value {
    color: var(--esms-shell-title, #18324a);
    font-weight: 700;
}

.esms-dashboard-module-shell {
    display: grid;
    gap: 1rem;
}

.esms-dashboard-module-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 1rem;
}

.esms-dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.85rem;
}

.esms-dashboard-stat-card {
    border: 1px solid var(--esms-shell-border, #dce6f0);
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    padding: 0.95rem 1rem;
}

.esms-dashboard-stat-label {
    color: var(--esms-shell-muted, #6f8296);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.esms-dashboard-stat-value {
    margin-top: 0.35rem;
    color: var(--esms-shell-title, #18324a);
    font-size: 1.55rem;
    line-height: 1;
    font-weight: 800;
}

.esms-dashboard-stat-note {
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.8rem;
}

.esms-dashboard-empty {
    padding: 2rem 1rem;
    border: 1px dashed #d7e3ef;
    border-radius: 0.95rem;
    text-align: center;
    color: #64748b;
    background: #fbfdff;
}

@media (max-width: 1199.98px) {
    .esms-dashboard-summary-card {
        grid-column: span 4;
    }

    .esms-dashboard-panel-grid,
    .esms-dashboard-module-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .esms-dashboard-summary-card {
        grid-column: span 12;
        min-height: auto;
    }

    .esms-dashboard-filterbar,
    .esms-dashboard-filterbar .toolbar-filters {
        display: grid;
    }

    .esms-dashboard-filterbar-input,
    .esms-dashboard-filterbar-select {
        width: 100%;
    }
}


/* Standard operational page shell used by menu modules. */
.esms-standard-page .content-panel {
    padding: 1rem;
}

.esms-page-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .55rem;
    padding: .55rem;
    border: 1px solid rgba(193, 210, 229, .82);
    border-radius: 1.2rem;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,251,255,.9));
    box-shadow: 0 1rem 2.2rem rgba(15, 23, 42, .11), 0 .2rem .55rem rgba(37, 99, 235, .08);
    backdrop-filter: blur(8px);
    transform: translateY(6px);
}

.esms-page-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 44px;
    padding: .75rem 1.15rem;
    border-radius: .9rem;
    font-size: .92rem;
    font-weight: 700;
    box-shadow: 0 .45rem 1rem rgba(15, 23, 42, .10);
    transition: transform .3s ease, box-shadow .3s ease;
}

.esms-page-action-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
    z-index: 10;
}

.esms-page-actions .btn-light.esms-page-action-btn {
    background: linear-gradient(180deg, #ffffff, #f7fbff);
}

@media (max-width: 767.98px) {
    .esms-page-actions {
        width: 100%;
        justify-content: stretch;
        flex-wrap: wrap;
        transform: none;
    }

    .esms-page-actions .esms-page-action-btn {
        flex: 1 1 150px;
    }
}

.esms-action-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.1rem;
    border: 1px solid var(--esms-shell-border, #dce6f0);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.96));
    box-shadow: 0 0.65rem 1.4rem rgba(15, 23, 42, 0.06);
}

.esms-action-toolbar-copy {
    display: grid;
    gap: 0.25rem;
    max-width: 42rem;
}

.esms-action-toolbar-title {
    margin: 0;
    color: var(--esms-shell-title, #18324a);
    font-size: 1rem;
    font-weight: 800;
}

.esms-action-toolbar-text {
    margin: 0;
    color: var(--esms-shell-muted, #6f8296);
    font-size: 0.84rem;
    line-height: 1.6;
}

.esms-action-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.esms-work-modal .modal-content {
    border: 0;
    border-radius: 1.1rem;
    overflow: hidden;
    box-shadow: 0 1.4rem 3rem rgba(15, 23, 42, 0.16);
}

.esms-work-modal .modal-header {
    background: linear-gradient(180deg, #fbfdff, #f4f8fc);
    border-bottom: 1px solid #e6edf4;
    padding: 1rem 1.1rem;
}

.esms-work-modal .modal-footer {
    border-top: 1px solid #e6edf4;
    background: linear-gradient(180deg, #fbfdff, #f7fbff);
}

.esms-work-modal .modal-body {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

@media (max-width: 767.98px) {
    .esms-action-toolbar {
        padding: 0.95rem 1rem;
    }

    .esms-action-toolbar-actions {
        width: 100%;
    }
}

.esms-internal-agenda {
    --agenda-base: #0f4c81;
    --agenda-soft: #dbeafe;
    --agenda-deep: #0b3a61;
    --agenda-accent: #f59e0b;
}

.esms-internal-agenda-hero {
    border: 1px solid rgba(15, 76, 129, 0.15);
    border-radius: 1.15rem;
    padding: 1.25rem 1.35rem;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 32%),
        linear-gradient(145deg, rgba(219, 234, 254, 0.82), rgba(255, 255, 255, 0.98));
    box-shadow: 0 1rem 2.25rem rgba(15, 23, 42, 0.06);
}

.esms-internal-agenda-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--agenda-base);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.esms-internal-agenda-lead {
    margin: 0;
    color: #526579;
    font-size: 0.94rem;
    line-height: 1.75;
    max-width: 52rem;
}

.esms-internal-agenda-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.esms-internal-agenda-stat {
    grid-column: span 4;
    border: 1px solid rgba(15, 76, 129, 0.12);
    border-radius: 1rem;
    padding: 1rem 1.05rem;
    background: #fff;
    box-shadow: 0 0.75rem 1.8rem rgba(15, 23, 42, 0.05);
}

.esms-internal-agenda-stat.is-soft {
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.9), rgba(255, 255, 255, 0.98));
}

.esms-internal-agenda-stat-label {
    display: block;
    margin-bottom: 0.35rem;
    color: #60758d;
    font-size: 0.8rem;
    font-weight: 700;
}

.esms-internal-agenda-stat-value {
    color: #17324b;
    font-size: 1.9rem;
    line-height: 1;
    font-weight: 800;
}

.esms-internal-agenda-stat-note {
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.8rem;
}

.esms-internal-agenda-list {
    display: grid;
    gap: 0.9rem;
}

.esms-internal-agenda-item {
    display: grid;
    gap: 0.8rem;
    padding: 1rem 1.05rem;
    border: 1px solid #dce6f0;
    border-radius: 1rem;
    background: #fff;
}

.esms-internal-agenda-item-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.esms-internal-agenda-item-title {
    margin: 0;
    color: #17324b;
    font-size: 1rem;
    font-weight: 800;
}

.esms-internal-agenda-item-meta {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.esms-internal-agenda-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.72rem;
    border-radius: 999px;
    background: var(--agenda-soft);
    color: var(--agenda-base);
    font-size: 0.76rem;
    font-weight: 800;
}

.esms-internal-agenda-chip.is-warn {
    background: #fff3db;
    color: #a16207;
}

.esms-internal-agenda-chip.is-deep {
    background: rgba(15, 76, 129, 0.12);
    color: var(--agenda-deep);
}

.esms-internal-agenda-report-card {
    border: 1px solid rgba(15, 76, 129, 0.12);
    border-radius: 1rem;
    padding: 1rem 1.05rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
}

@media (max-width: 991.98px) {
    .esms-internal-agenda-stat {
        grid-column: span 6;
    }
}

@media (max-width: 767.98px) {
    .esms-internal-agenda-stat {
        grid-column: span 12;
    }
}


/* Keep operational pages compact across desktop resolutions. */
@media (min-width: 992px) {
    body.template-b:has(.esms-standard-page) .esms-template-b-utility-shell {
        padding-top: .45rem;
    }

    body.template-b:has(.esms-standard-page) .esms-template-b-dropdown-row {
        display: none !important;
    }

    body.template-b:has(.esms-standard-page) .esms-template-b-breadcrumb-row {
        padding-top: .15rem;
    }
}

/* Room Meeting module: globalized from page-local Blade styles. */
body.page-room-meeting .esms-shell-main-panel,
body.page-room-meeting-calendar .esms-shell-main-panel { padding-top: 1rem !important; }
body.page-room-meeting-approval .esms-shell-main-panel { padding-top: 1rem !important; background: #ffffff; }
body.page-room-meeting .esms-shell-page,
body.page-room-meeting-approval .esms-shell-page,
body.page-room-meeting-calendar .esms-shell-page { padding-top: 0 !important; }
body.page-room-meeting .esms-shell-content-header,
body.page-room-meeting-approval .esms-shell-content-header,
body.page-room-meeting-calendar .esms-shell-content-header { padding-top: .55rem !important; padding-bottom: .5rem !important; }
body.page-room-meeting .esms-shell-content-header::before,
body.page-room-meeting-approval .esms-shell-content-header::before,
body.page-room-meeting-calendar .esms-shell-content-header::before { inset: .5rem 1rem .45rem !important; }
body.page-room-meeting .esms-shell-content,
body.page-room-meeting-approval .esms-shell-content,
body.page-room-meeting-calendar .esms-shell-content { padding-top: .85rem !important; }

.filter-card { border: 1px solid #dce6f0; border-radius: .75rem; background: #fff; padding: 1.25rem; margin-bottom: 1.25rem; box-shadow: 0 .125rem .25rem rgba(0,0,0,.075); }
.filter-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.filter-card-head h5 { margin-bottom: .2rem; }
.filter-card-head p { margin-bottom: 0; color: #6c757d; font-size: .88rem; }
body.page-room-meeting .filter-card .form-label { font-size: .85rem; }
.meeting-table-card { border: 1px solid #dce6f0; border-radius: .25rem; overflow: hidden; background: #fff; box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2); }
.meeting-table-card .table { margin: 0; }
.meeting-table-card th { font-size: .8rem; font-weight: 600; text-transform: uppercase; color: #495057; background: #f4f6f9; border-bottom: 2px solid #dee2e6; padding: .65rem .75rem; white-space: nowrap; }
.meeting-table-card td { padding: .65rem .75rem; vertical-align: middle; font-size: .88rem; }
.meeting-code { font-weight: 700; color: #343a40; font-size: .9rem; }
.meeting-meta { color: #6c757d; font-size: .8rem; margin-top: .15rem; }
.meeting-subject { font-size: .9rem; font-weight: 600; color: #343a40; margin-bottom: .15rem; }
.meeting-actions { display: flex; flex-wrap: nowrap; gap: .25rem; align-items: center; justify-content: center; }
.meeting-actions .btn { padding: .25rem .5rem; font-size: .8rem; }
.info-box-icon { transition: transform .3s ease; }
.hover-lift:hover .info-box-icon { transform: scale(1.1) rotate(5deg); }
.small-box .icon { transition: all .3s ease; }
.small-box:hover .icon { transform: scale(1.15) rotate(-5deg); right: 15px; }

.approval-shell { display: grid; gap: 1rem; }
.approval-card { border: 1px solid #dce6f0; border-radius: 1rem; background: #fff; box-shadow: 0 .65rem 1.5rem rgba(15, 23, 42, .06); overflow: hidden; }
.approval-head { padding: 1rem 1.1rem; border-bottom: 1px solid #e7edf4; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.approval-body { padding: 1rem 1.1rem; display: grid; gap: .9rem; }
.approval-item { border: 1px solid #e6edf5; border-radius: 1rem; padding: 1rem; display: grid; gap: .85rem; background: linear-gradient(180deg, #fff, #fbfdff); }
.approval-title { font-weight: 700; color: #17324a; }
.approval-meta { color: #6b7f93; font-size: .84rem; }
.approval-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.approval-status { display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .68rem; border-radius: 999px; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.approval-status.pending { background: #fef3c7; color: #92400e; }
.approval-status.approved { background: #dcfce7; color: #166534; }
.approval-status.draft { background: #dbeafe; color: #1d4ed8; }
.approval-status.cancelled { background: #fee2e2; color: #b91c1c; }

.calendar-shell { display: grid; gap: 1rem; }
.calendar-panel { border: 1px solid #dce6f0; border-radius: 1rem; background: #fff; box-shadow: 0 .65rem 1.5rem rgba(15, 23, 42, .06); overflow: hidden; }
.calendar-head { padding: 1rem 1.1rem; border-bottom: 1px solid #e7edf4; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.calendar-body { padding: 1rem 1.1rem; overflow-x: hidden; }
.calendar-scroll { width: 100%; overflow-x: auto; overflow-y: hidden; padding-bottom: .15rem; }
.calendar-toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: .75rem; font-size: .82rem; color: #475569; }
.calendar-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.calendar-dot { width: 11px; height: 11px; border-radius: 999px; display: inline-block; }
.calendar-dot-approved { background: #dcfce7; }
.calendar-dot-pending { background: #fef3c7; }
.calendar-dot-draft { background: #dbeafe; }
.calendar-dot-cancelled { background: #fee2e2; }
.calendar-dot-available { background: #f8fafc; border: 1px dashed #cfd9e5; }
.calendar-filter-card { margin-bottom: 1rem; border: 1px solid #dce6f0; border-radius: .75rem; background: #fff; box-shadow: 0 .125rem .25rem rgba(0,0,0,.075); overflow: hidden; width: 100%; min-width: 1180px; }
.calendar-filter-card .card-header { background: #f4f6f9; border-bottom: 1px solid #dee2e6; padding: .85rem 1rem; }
.calendar-filter-card .card-body { padding: 1rem; }
.calendar-filter-title { font-size: .78rem; letter-spacing: .04em; }
.calendar-filter-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: end; width: 100%; }
.calendar-week-tools { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; align-items: center; }
.calendar-week-strip { display: grid; grid-template-columns: repeat(5, minmax(72px, 1fr)); gap: .45rem; min-width: 0; }
.calendar-week-nav-btn { min-height: 42px; border-radius: .75rem; padding-inline: .85rem; white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; }
.calendar-week-chip { min-width: 0; width: 100%; padding: .55rem .55rem; border-radius: .8rem; text-decoration: none; border: 1px solid #d7e3ef; background: #fff; color: #334155; display: grid; gap: .08rem; text-align: center; box-shadow: 0 .15rem .35rem rgba(15, 23, 42, .05); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.calendar-week-chip:hover { transform: translateY(-2px); border-color: #93c5fd; box-shadow: 0 .35rem .8rem rgba(15, 23, 42, .10); color: #1d4ed8; }
.calendar-week-chip.active { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.calendar-week-chip .day-name { font-size: .68rem; font-weight: 800; letter-spacing: .01em; }
.calendar-week-chip .day-number { font-size: 1.02rem; font-weight: 800; line-height: 1; }
.calendar-week-chip .month-name { font-size: .72rem; font-weight: 700; opacity: .9; }
.calendar-date-picker { min-width: 0; width: 220px; justify-self: end; }
.calendar-date-picker .form-label { font-size: .78rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .35rem; }
.calendar-date-picker .form-control { min-height: 46px; border-radius: .9rem; }
.calendar-grid { min-width: 1180px; display: grid; }
.calendar-grid.rooms-1 { grid-template-columns: 100px repeat(1, minmax(180px, 1fr)); }
.calendar-grid.rooms-2 { grid-template-columns: 100px repeat(2, minmax(180px, 1fr)); }
.calendar-grid.rooms-3 { grid-template-columns: 100px repeat(3, minmax(180px, 1fr)); }
.calendar-grid.rooms-4 { grid-template-columns: 100px repeat(4, minmax(180px, 1fr)); }
.calendar-grid.rooms-5 { grid-template-columns: 100px repeat(5, minmax(180px, 1fr)); }
.calendar-grid.rooms-6 { grid-template-columns: 100px repeat(6, minmax(180px, 1fr)); }
.calendar-grid.rooms-7 { grid-template-columns: 100px repeat(7, minmax(180px, 1fr)); }
.calendar-grid.rooms-8 { grid-template-columns: 100px repeat(8, minmax(180px, 1fr)); }
.calendar-grid.rooms-9 { grid-template-columns: 100px repeat(9, minmax(180px, 1fr)); }
.calendar-grid.rooms-10 { grid-template-columns: 100px repeat(10, minmax(180px, 1fr)); }
.calendar-grid.rooms-11 { grid-template-columns: 100px repeat(11, minmax(180px, 1fr)); }
.calendar-grid.rooms-12 { grid-template-columns: 100px repeat(12, minmax(180px, 1fr)); }
.calendar-grid.rooms-13 { grid-template-columns: 100px repeat(13, minmax(180px, 1fr)); }
.calendar-grid.rooms-14 { grid-template-columns: 100px repeat(14, minmax(180px, 1fr)); }
.calendar-grid.rooms-15 { grid-template-columns: 100px repeat(15, minmax(180px, 1fr)); }
.calendar-grid.rooms-16 { grid-template-columns: 100px repeat(16, minmax(180px, 1fr)); }
.calendar-grid.rooms-17 { grid-template-columns: 100px repeat(17, minmax(180px, 1fr)); }
.calendar-grid.rooms-18 { grid-template-columns: 100px repeat(18, minmax(180px, 1fr)); }
.calendar-grid.rooms-19 { grid-template-columns: 100px repeat(19, minmax(180px, 1fr)); }
.calendar-grid.rooms-20 { grid-template-columns: 100px repeat(20, minmax(180px, 1fr)); }
.calendar-cell { border-right: 1px solid #edf2f7; border-bottom: 1px solid #edf2f7; min-height: 62px; padding: .45rem .55rem; background: #fff; display: flex; align-items: center; justify-content: center; }
.calendar-cell.head { background: #f8fbff; font-weight: 700; color: #17324a; }
.calendar-cell.time { background: #fbfdff; color: #60758d; font-weight: 700; }
.calendar-slot { min-height: 50px; border-radius: 1rem; display: flex; flex-direction: row; align-items: center; justify-content: center; text-align: left; font-size: .78rem; font-weight: 700; padding: .55rem .95rem .55rem .78rem; gap: .62rem; line-height: 1.1; position: relative; overflow: hidden; width: 100%; margin: auto 0; }
.calendar-slot-button { width: 100%; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease; position: relative; overflow: hidden; }
.calendar-slot-button:hover { transform: translateY(-2px); box-shadow: 0 .45rem 1rem rgba(15, 23, 42, .08); }
.calendar-slot-button:focus-visible { outline: none; box-shadow: 0 0 0 .22rem rgba(29, 78, 216, .14); }
.calendar-slot::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,0)); pointer-events: none; }
.calendar-slot-content { position: relative; z-index: 1; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: .62rem; width: 100%; height: 100%; min-width: 0; }
.calendar-slot-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .16rem; min-width: 0; flex: 1 1 auto; }
.calendar-slot-icon { width: 1.7rem; height: 1.7rem; flex: 0 0 1.7rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: .76rem; box-shadow: inset 0 1px 0 rgba(255,255,255,.45); }
.calendar-slot-title { display: block; font-size: .81rem; font-weight: 800; line-height: 1.05; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calendar-slot-status { display: inline-flex; align-items: center; justify-content: flex-start; padding: .12rem .46rem; border-radius: 999px; font-size: .62rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; backdrop-filter: blur(4px); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calendar-slot .calendar-slot-status.is-unavailable { background: linear-gradient(160deg, #dc2626 0%, #b91c1c 100%) !important; color: #fff7f7 !important; box-shadow: 0 .24rem .5rem rgba(185, 28, 28, .32) !important; }
.calendar-slot small { font-size: .66rem; font-weight: 700; opacity: .9; }
.calendar-slot.available { background: linear-gradient(180deg, #fcfdff, #f3f7fb); border: 1px dashed #c7d5e6; color: #5f7691; box-shadow: inset 0 1px 0 rgba(255,255,255,.45); }
.calendar-slot.available .calendar-slot-icon { background: linear-gradient(180deg, #ffffff, #edf3fa); color: #5f7691; }
.calendar-slot.available .calendar-slot-status { background: linear-gradient(160deg, #fde68a 0%, #facc15 100%); color: #713f12; box-shadow: 0 .18rem .38rem rgba(250, 204, 21, .24); margin-left: .02rem; }
.calendar-slot.available.calendar-slot-button:hover { border-color: #93c5fd; color: #1d4ed8; background: linear-gradient(180deg, #fafdff, #eaf2fb); }
.calendar-slot.available.calendar-slot-button:hover .calendar-slot-icon { color: #1d4ed8; transform: scale(1.06); }
.calendar-slot-cta { display: inline-flex; align-items: center; gap: .32rem; font-size: .54rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity .18s ease, transform .18s ease; max-width: none; overflow: visible; text-overflow: clip; color: #0f5f8f; margin-left: .02rem; }
.calendar-slot.available .calendar-slot-copy { align-items: flex-start; text-align: left; max-width: 100%; }
.calendar-slot.approved .calendar-slot-copy, .calendar-slot.pending .calendar-slot-copy, .calendar-slot.draft .calendar-slot-copy, .calendar-slot.cancelled .calendar-slot-copy { align-items: flex-start; text-align: left; max-width: calc(100% - 2.4rem); }
.calendar-slot.approved .calendar-slot-content, .calendar-slot.pending .calendar-slot-content, .calendar-slot.draft .calendar-slot-content, .calendar-slot.cancelled .calendar-slot-content { justify-content: flex-start; align-items: center; gap: .62rem; min-height: 100%; }
.calendar-slot.approved .calendar-slot-title, .calendar-slot.pending .calendar-slot-title, .calendar-slot.draft .calendar-slot-title, .calendar-slot.cancelled .calendar-slot-title { text-align: left; white-space: normal; overflow: visible; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; font-size: .76rem; }
.calendar-slot.available .calendar-slot-content { padding-left: 0; padding-right: .55rem; transform: translateX(-.22rem); }
.calendar-slot-button:hover .calendar-slot-cta, .calendar-slot-button:focus-visible .calendar-slot-cta { opacity: 1; transform: translateY(0); }
.calendar-slot-button:hover .calendar-slot-label, .calendar-slot-button:focus-visible .calendar-slot-label { transform: translateY(-2px); }
.calendar-slot-label { transition: transform .18s ease; }
.calendar-slot-button .calendar-slot-icon { transition: transform .2s ease, color .2s ease; }
.calendar-slot.flash-updated { animation: calendarSlotFlash .8s ease; }
.calendar-slot.drag-selecting { border-color: #2563eb; background: linear-gradient(180deg, #eff6ff, #dbeafe); color: #1d4ed8; box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .12); transform: translateY(-1px); }
.calendar-selection-hint { margin-top: .65rem; font-size: .78rem; color: #64748b; }
@keyframes calendarSlotFlash { 0% { transform: scale(.98); box-shadow: 0 0 0 0 rgba(29, 78, 216, .22); } 55% { transform: scale(1.02); box-shadow: 0 0 0 .45rem rgba(29, 78, 216, .08); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(29, 78, 216, 0); } }
.calendar-slot.approved { background: linear-gradient(160deg, #1f9d61 0%, #157347 100%); color: #fff; border: 1px solid #0f6a40; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 .45rem 1rem rgba(21, 115, 71, .18); }
.calendar-slot.approved .calendar-slot-icon, .calendar-slot.pending .calendar-slot-icon, .calendar-slot.draft .calendar-slot-icon, .calendar-slot.cancelled .calendar-slot-icon { background: rgba(255,255,255,.16); color: #fff; }
.calendar-slot.approved .calendar-slot-status { background: rgba(255,255,255,.16); color: #f0fdf4; }
.calendar-slot.pending { background: linear-gradient(160deg, #d39a18 0%, #b7791f 100%); color: #fffdf5; border: 1px solid #9f6615; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 .45rem 1rem rgba(183, 121, 31, .18); }
.calendar-slot.pending .calendar-slot-status { background: rgba(255,255,255,.16); color: #fff8e1; }
.calendar-slot.draft { background: linear-gradient(160deg, #2563eb 0%, #1d4ed8 100%); color: #eff6ff; border: 1px solid #1e40af; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 .45rem 1rem rgba(37, 99, 235, .18); }
.calendar-slot.draft .calendar-slot-status { background: rgba(255,255,255,.16); color: #dbeafe; }
.calendar-slot.cancelled { background: linear-gradient(160deg, #d6455d 0%, #b4233a 100%); color: #fff1f2; border: 1px solid #9f1239; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 .45rem 1rem rgba(180, 35, 58, .18); }
.calendar-slot.cancelled .calendar-slot-status { background: rgba(255,255,255,.16); color: #ffe4e6; }

.room-meeting-form-shell .compact-hero-header { background: radial-gradient(circle at top right, rgba(255,255,255,.16), transparent 32%), linear-gradient(135deg, #0f766e, #0b5f92 58%, #0b4c74); color: #fff; padding: 1.15rem 1.35rem; }
.room-meeting-form-shell .compact-hero-grid { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.room-meeting-form-shell .compact-hero-kicker { display: inline-flex; align-items: center; gap: .42rem; padding: .32rem .72rem; border-radius: 999px; background: rgba(255,255,255,.14); color: #dff8f3; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.room-meeting-form-shell .compact-hero-title { margin: .7rem 0 .28rem; font-size: 1.8rem; line-height: 1.08; font-weight: 700; color: #fff; }
.room-meeting-form-shell .compact-hero-copy { margin: 0; color: rgba(240,249,255,.88); font-size: .95rem; max-width: 760px; }
.room-meeting-form-shell .compact-hero-header .btn { border-color: rgba(255,255,255,.28); color: #fff; background: rgba(255,255,255,.08); }
.room-meeting-form-shell .compact-hero-header .btn:hover { color: #fff; background: rgba(255,255,255,.16); }
.room-meeting-form-shell-body { padding: 1rem; background: linear-gradient(180deg, #fbfdff, #f6f9fc); }
.room-meeting-form-panel { border: 1px solid #dce6f0; border-radius: 1rem; overflow: hidden; background: #fff; }
.room-meeting-form-panel .card-header { padding: .9rem 1rem; background: linear-gradient(180deg, #f8fbfe, #f2f7fb); border-bottom: 1px solid #dce6f0; }
.room-meeting-form-panel .card-body { padding: 1rem; }
.room-meeting-form-shell .form-label { font-weight: 600; color: #22384d; }
.room-meeting-form-shell .form-control, .room-meeting-form-shell .form-select { min-height: 42px; border-radius: .7rem; border-color: #d4dde7; box-shadow: none; }
.room-meeting-form-shell textarea.form-control { min-height: 120px; }
.footer-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #dfe7ef; }
@media (max-width: 1199.98px) { .calendar-filter-layout { grid-template-columns: 1fr; } .calendar-date-picker { max-width: 260px; } }
@media (max-width: 991.98px) { .calendar-scroll { overflow-x: visible; } .calendar-filter-card { min-width: 0; } .calendar-filter-layout { grid-template-columns: 1fr; } .calendar-week-tools { grid-template-columns: 1fr; align-items: stretch; } .calendar-week-strip { grid-template-columns: 1fr; } .calendar-week-nav-btn { width: 100%; justify-content: center; } .calendar-week-chip { min-height: 56px; text-align: center; justify-items: center; align-content: center; } .calendar-date-picker { width: 100%; max-width: none; justify-self: stretch; } .calendar-grid { min-width: 980px; } .room-meeting-form-shell .compact-hero-grid { flex-direction: column; } .footer-actions { flex-direction: column; align-items: stretch; } }
@media (max-width: 767.98px) { .calendar-filter-card .card-body { padding: .85rem; } .calendar-week-chip { padding: .6rem .45rem; gap: .14rem; } .calendar-week-chip .day-name, .calendar-week-chip .day-number, .calendar-week-chip .month-name { width: 100%; text-align: center; } .calendar-week-chip .day-name { font-size: .8rem; } .calendar-week-chip .month-name { font-size: .76rem; } .calendar-date-picker .form-control { min-height: 42px; } }

/* Incoming Mail module: globalized from page-local Blade styles. */
body.page-incoming-mail .content-panel { padding: 1rem; }
body.page-incoming-mail .filter-card { border: 1px solid #dce6f0; border-radius: .75rem; background: #fff; padding: 1.25rem; margin-bottom: 1.25rem; box-shadow: 0 .125rem .25rem rgba(0,0,0,.075); }
body.page-incoming-mail .filter-card-title { font-size: 1.1rem; font-weight: 700; color: #343a40; margin-bottom: 1rem; }
.mail-table-card { border: 1px solid #dce6f0; border-radius: .25rem; overflow: hidden; background: #fff; box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2); }
.mail-table-card .table { margin: 0; }
.mail-table-card th { font-size: .8rem; font-weight: 600; text-transform: uppercase; color: #495057; background: #f4f6f9; border-bottom: 2px solid #dee2e6; padding: .65rem .75rem; white-space: nowrap; }
.mail-table-card td { padding: .65rem .75rem; vertical-align: middle; font-size: .88rem; }
.mail-number { font-weight: 700; color: #343a40; font-size: .9rem; }
.mail-meta { color: #6c757d; font-size: .8rem; margin-top: .15rem; }
.mail-subject { font-size: .9rem; font-weight: 600; color: #343a40; margin-bottom: .15rem; }
.mail-actions { display: flex; flex-wrap: nowrap; gap: .25rem; align-items: center; }
.mail-actions .btn { padding: .25rem .5rem; font-size: .8rem; }
.mail-sort-button { display: inline-flex; align-items: center; gap: .4rem; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.mail-sort-icon { opacity: .45; font-size: .72rem; transition: opacity .2s ease; }
.mail-sort-button.is-active .mail-sort-icon { opacity: 1; color: var(--bs-primary, #0d6efd); }
.filter-loading { font-size: .85rem; color: #6c757d; display: none; }
.filter-loading.is-visible { display: inline-flex; align-items: center; gap: .45rem; }
.incoming-results.is-loading { opacity: .72; transition: opacity .2s ease; }
.top-action-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .75rem 1.15rem; border-radius: .9rem; font-size: .92rem; font-weight: 700; box-shadow: 0 .55rem 1.2rem rgba(15, 23, 42, .10); border-width: 1px; }
.top-action-btn-primary { background: linear-gradient(135deg, #2563eb, #1d4ed8); border-color: #1d4ed8; color: #fff; }
.top-action-btn-primary:hover, .top-action-btn-primary:focus { background: linear-gradient(135deg, #1d4ed8, #1e40af); border-color: #1e40af; color: #fff; }
.top-action-btn-secondary { background: linear-gradient(180deg, #ffffff, #f8fbff); border-color: #cfdceb; color: #35506b; }
.top-action-btn-secondary:hover, .top-action-btn-secondary:focus { background: linear-gradient(180deg, #f8fbff, #eef4fb); border-color: #bfd1e5; color: #27435d; }
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important; z-index: 10; cursor: pointer; }

.incoming-disposition-frame { width: 100%; min-height: 82vh; border: 0; background: #fff; }
.incoming-bulk-action-select { width: 250px; }
.incoming-select-header { width: 72px; }
.incoming-no-header { width: 80px; }
.incoming-action-header { width: 152px; }
.incoming-action-group { display: flex !important; width: 136px; justify-content: center; align-items: center; margin: 0 auto; }
.incoming-action-grid { display: flex !important; flex-wrap: wrap; justify-content: center; align-items: center; gap: .35rem !important; width: 136px; margin: 0 auto; }
.incoming-action-btn { width: 30px !important; min-width: 30px !important; max-width: 30px !important; height: 30px !important; min-height: 30px !important; max-height: 30px !important; display: inline-flex !important; align-items: center; justify-content: center; padding: 0 !important; border-radius: .6rem !important; font-size: .78rem !important; }
.incoming-action-grid form { display: inline-flex; margin: 0; }
#incomingListWrapper .archive-flow-chip { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; margin-top: .22rem; padding: .12rem .42rem; border-radius: .45rem; font-size: .72rem; font-weight: 700; line-height: 1.25; white-space: normal; }
#incomingListWrapper .archive-flow-submitted { color: #075985; background: #e0f2fe; border: 1px solid #bae6fd; }
#incomingListWrapper .archive-flow-verify { color: #854d0e; background: #fef3c7; border: 1px solid #fde68a; }
#incomingListWrapper .archive-flow-archived { color: #166534; background: #dcfce7; border: 1px solid #bbf7d0; }
#incomingListWrapper .archive-flow-signed { color: #0f766e; background: #ccfbf1; border: 1px solid #99f6e4; }
#incomingListWrapper .archive-flow-returned { color: #991b1b; background: #fee2e2; border: 1px solid #fecaca; }
#incomingListWrapper .incoming-filter-inline { margin-top: .85rem; padding-top: .85rem; border-top: 1px solid #edf2f7; }
#incomingListWrapper .incoming-filter-inline .form-label { font-size: .78rem; margin-bottom: .3rem; }
#incomingListWrapper .incoming-filter-inline .form-control, #incomingListWrapper .incoming-filter-inline .form-select, #incomingListWrapper .incoming-filter-inline .btn { min-height: 38px; border-radius: .65rem; font-size: .84rem; }
#incomingListWrapper .incoming-filter-actions { display: flex; gap: .45rem; justify-content: flex-end; flex-wrap: nowrap; }
#incomingListWrapper .incoming-filter-actions .btn { flex: 0 0 auto; min-width: 88px; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; font-weight: 700; white-space: nowrap; }
#incomingListWrapper .incoming-bulk-toolbar, #incomingListWrapper .incoming-bulk-tools, #incomingListWrapper .incoming-select-column { display: none; }
#incomingListWrapper.is-selecting .incoming-select-column { display: table-cell; }
#incomingListWrapper.is-selecting .incoming-bulk-toolbar, #incomingListWrapper.is-selecting .incoming-bulk-tools { display: flex; }
#incomingListWrapper.has-selection .incoming-bulk-toolbar { border-color: #bfdbfe; background: #eff6ff; }
#incomingListWrapper .incoming-bulk-toolbar { justify-content: flex-end; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: .85rem; padding: .75rem .85rem; border: 1px solid #e2e8f0; border-radius: .8rem; background: #f8fafc; }
#incomingListWrapper .incoming-bulk-tools { flex-wrap: wrap; justify-content: flex-end; gap: .5rem; align-items: center; }
#incomingListWrapper .incoming-bulk-toolbar .btn, #incomingListWrapper .incoming-bulk-toolbar .form-select { min-height: 36px; border-radius: .65rem; font-size: .84rem; }
#incomingListWrapper .incoming-check { width: 18px; height: 18px; display: inline-block; opacity: 1; appearance: auto; -webkit-appearance: checkbox; position: static; margin: 0; accent-color: #0d6efd; }
#incomingListWrapper .archive-tooltip-host { position: relative; cursor: help; }
#incomingListWrapper .archive-tooltip-panel { position: absolute; z-index: 40; top: calc(100% + .35rem); right: .25rem; display: none; min-width: 190px; max-width: 260px; padding: .5rem; border: 1px solid #d8e4f0; border-radius: .65rem; background: rgba(255, 255, 255, .98); box-shadow: 0 .65rem 1.45rem rgba(15, 23, 42, .18); }
#incomingListWrapper .archive-tooltip-host:hover .archive-tooltip-panel { display: grid; gap: .28rem; }
#incomingListWrapper .archive-tooltip-panel::before { content: ""; position: absolute; top: -.38rem; right: 1rem; width: .7rem; height: .7rem; background: #fff; border-left: 1px solid #d8e4f0; border-top: 1px solid #d8e4f0; transform: rotate(45deg); }
@media (max-width: 767.98px) { #incomingListWrapper .table-action-cell { width: 152px !important; min-width: 152px !important; padding-left: .35rem !important; padding-right: .35rem !important; } .incoming-action-group, .incoming-action-grid { width: 124px !important; } .incoming-action-grid { gap: .28rem !important; } .incoming-action-btn { width: 28px !important; min-width: 28px !important; max-width: 28px !important; height: 28px !important; min-height: 28px !important; max-height: 28px !important; border-radius: .55rem !important; font-size: .72rem !important; } }
@media (max-width: 575.98px) { #incomingListWrapper .incoming-filter-actions { flex-wrap: wrap; } #incomingListWrapper .incoming-filter-actions .btn { flex: 1 1 30%; min-width: 82px; } }

/* Outgoing Mail module: globalized from page-local Blade styles. */
body.page-outgoing-mail .content-panel { padding: 1rem; }
body.page-outgoing-mail .filter-card { border: 1px solid #dce6f0; border-radius: .75rem; background: #fff; padding: 1.25rem; margin-bottom: 1.25rem; box-shadow: 0 .125rem .25rem rgba(0,0,0,.075); }
body.page-outgoing-mail .filter-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
body.page-outgoing-mail .filter-card-head h5 { margin-bottom: .2rem; font-size: 1.1rem; font-weight: 700; color: #343a40; }
body.page-outgoing-mail .filter-card-head p { margin-bottom: 0; color: #6c757d; font-size: .88rem; }
body.page-outgoing-mail .filter-loading { font-size: .85rem; color: #6c757d; display: none; }
body.page-outgoing-mail .filter-loading.is-visible { display: inline-flex; align-items: center; gap: .45rem; }
.outgoing-results.is-loading { opacity: .72; transition: opacity .2s ease; }

.outgoing-bulk-action-select { width: 250px; }
.outgoing-select-header { width: 72px; }
.outgoing-no-header { width: 80px; }
.outgoing-action-header { width: 118px; }
#outgoingListWrapper .outgoing-action-grid { display: grid; grid-template-columns: repeat(4, 30px); gap: .35rem; justify-content: center; align-items: center; justify-items: center; margin: 0 auto; }
#outgoingListWrapper .outgoing-action-grid form { display: inline-flex; margin: 0; }
#outgoingListWrapper .outgoing-action-btn { width: 30px !important; min-width: 30px !important; max-width: 30px !important; height: 30px !important; min-height: 30px !important; max-height: 30px !important; display: inline-flex !important; align-items: center; justify-content: center; padding: 0 !important; border-radius: .6rem !important; font-size: .78rem !important; }
#outgoingListWrapper .outgoing-action-btn-plus { font-size: 1.1rem !important; line-height: 1 !important; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; transform: translateY(-1px); }
#outgoingListWrapper .archive-flow-chip { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; margin-top: .22rem; padding: .12rem .42rem; border-radius: .45rem; font-size: .72rem; font-weight: 700; line-height: 1.25; white-space: normal; }
#outgoingListWrapper .archive-flow-submitted { color: #075985; background: #e0f2fe; border: 1px solid #bae6fd; }
#outgoingListWrapper .archive-flow-verify { color: #854d0e; background: #fef3c7; border: 1px solid #fde68a; }
#outgoingListWrapper .archive-flow-archived { color: #166534; background: #dcfce7; border: 1px solid #bbf7d0; }
#outgoingListWrapper .archive-flow-signed { color: #0f766e; background: #ccfbf1; border: 1px solid #99f6e4; }
#outgoingListWrapper .archive-flow-returned { color: #991b1b; background: #fee2e2; border: 1px solid #fecaca; }
#outgoingListWrapper .edoc-flow-chip { color: #075985; background: #e0f2fe; border: 1px solid #bae6fd; }
#outgoingListWrapper .edoc-flow-review { color: #1d4ed8; background: #dbeafe; border-color: #bfdbfe; }
#outgoingListWrapper .edoc-flow-waiting { color: #854d0e; background: #fef3c7; border-color: #fde68a; }
#outgoingListWrapper .edoc-flow-signed { color: #0f766e; background: #ccfbf1; border-color: #99f6e4; }
#outgoingListWrapper .edoc-flow-returned { color: #991b1b; background: #fee2e2; border-color: #fecaca; }
#outgoingListWrapper .outgoing-list-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
#outgoingListWrapper .outgoing-filter-inline { margin-top: .85rem; padding-top: .85rem; border-top: 1px solid #edf2f7; }
#outgoingListWrapper .outgoing-filter-inline .form-label { font-size: .78rem; margin-bottom: .3rem; }
#outgoingListWrapper .outgoing-filter-inline .form-control, #outgoingListWrapper .outgoing-filter-inline .form-select, #outgoingListWrapper .outgoing-filter-inline .btn { min-height: 38px; border-radius: .65rem; font-size: .84rem; }
#outgoingListWrapper .outgoing-filter-actions { display: flex; gap: .45rem; justify-content: flex-end; flex-wrap: nowrap; }
#outgoingListWrapper .outgoing-filter-actions .btn { flex: 0 0 auto; min-width: 88px; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; font-weight: 700; white-space: nowrap; }
#outgoingListWrapper .outgoing-bulk-toolbar, #outgoingListWrapper .outgoing-bulk-tools, #outgoingListWrapper .outgoing-select-column { display: none; }
#outgoingListWrapper.is-selecting .outgoing-select-column { display: table-cell; }
#outgoingListWrapper.is-selecting .outgoing-bulk-toolbar, #outgoingListWrapper.is-selecting .outgoing-bulk-tools { display: flex; }
#outgoingListWrapper.has-selection .outgoing-bulk-toolbar { border-color: #bfdbfe; background: #eff6ff; }
#outgoingListWrapper .outgoing-bulk-toolbar { justify-content: flex-end; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: .85rem; padding: .75rem .85rem; border: 1px solid #e2e8f0; border-radius: .8rem; background: #f8fafc; }
#outgoingListWrapper .outgoing-bulk-tools { flex-wrap: wrap; justify-content: flex-end; gap: .5rem; align-items: center; }
#outgoingListWrapper .outgoing-bulk-toolbar .btn, #outgoingListWrapper .outgoing-bulk-toolbar .form-select { min-height: 36px; border-radius: .65rem; font-size: .84rem; }
#outgoingListWrapper .outgoing-check { width: 18px; height: 18px; display: inline-block; opacity: 1; appearance: auto; -webkit-appearance: checkbox; position: static; margin: 0; accent-color: #0d6efd; }
#outgoingListWrapper .archive-tooltip-host { position: relative; cursor: help; }
#outgoingListWrapper .archive-tooltip-panel { position: absolute; z-index: 40; top: calc(100% + .35rem); right: .25rem; display: none; min-width: 190px; max-width: 260px; padding: .5rem; border: 1px solid #d8e4f0; border-radius: .65rem; background: rgba(255, 255, 255, .98); box-shadow: 0 .65rem 1.45rem rgba(15, 23, 42, .18); }
#outgoingListWrapper .archive-tooltip-host:hover .archive-tooltip-panel { display: grid; gap: .28rem; }
#outgoingListWrapper .archive-tooltip-panel::before { content: ""; position: absolute; top: -.38rem; right: 1rem; width: .7rem; height: .7rem; background: #fff; border-left: 1px solid #d8e4f0; border-top: 1px solid #d8e4f0; transform: rotate(45deg); }
@media (min-width: 992px) and (max-width: 1199.98px) { #outgoingListWrapper .outgoing-filter-actions { justify-content: flex-start; } }
@media (max-width: 575.98px) { #outgoingListWrapper .outgoing-filter-actions { flex-wrap: wrap; } #outgoingListWrapper .outgoing-filter-actions .btn { flex: 1 1 30%; min-width: 82px; } }
@media (max-width: 767.98px) { #outgoingListWrapper .table-action-cell { width: 152px !important; min-width: 152px !important; padding-left: .35rem !important; padding-right: .35rem !important; } #outgoingListWrapper .outgoing-action-grid { grid-template-columns: repeat(4, 28px); gap: .28rem; } #outgoingListWrapper .outgoing-action-btn { width: 28px !important; min-width: 28px !important; max-width: 28px !important; height: 28px !important; min-height: 28px !important; max-height: 28px !important; border-radius: .55rem !important; font-size: .72rem !important; } }

