:root {
    --fluent-bg: #f5f7fb;
    --fluent-surface: #ffffff;
    --fluent-surface-alt: #f8fafc;
    --fluent-card: #ffffff;
    --fluent-border: #d8dee8;
    --fluent-border-strong: #b7c1d1;
    --fluent-text: #1f2328;
    --fluent-muted: #5d6673;
    --fluent-primary: #0f6cbd;
    --fluent-primary-hover: #115ea3;
    --fluent-primary-soft: #e7f1fb;
    --fluent-danger: #c50f1f;
    --fluent-danger-soft: #fde7e9;
    --fluent-success: #107c10;
    --fluent-warning: #f9a825;
    --fluent-radius: 8px;
    --fluent-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body.fluent {
    margin: 0;
    min-height: 100vh;
    background: var(--fluent-bg);
    color: var(--fluent-text);
    font-family: "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
}

.app-shell {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 18px 0 32px;
}

.app-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(245, 247, 251, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(216, 222, 232, 0.8);
}

.app-bar-inner {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
}


.menu-toggle{
    display:none;
}

@media (max-width:820px){

    .menu-toggle{
        display:block;
        width:100%;
        padding:10px;
        margin-top:10px;
        cursor:pointer;
    }

  
.nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;

    background: #ffffff;
    border: 1px solid var(--fluent-border-strong);
    border-radius: var(--fluent-radius);
    padding: 10px;
    box-shadow: var(--fluent-shadow);
            background: #9da2cd;
        padding-bottom: 14px;
}

.nav.open {
    display: flex;
}

.nav a,
.nav .badge {
    width: 100%;
    justify-content: center;
    background: var(--fluent-surface-alt);
    border-color: var(--fluent-border);
    white-space: normal;
    text-align: center;
}

.nav a.active {
    background: var(--fluent-primary);
    color: #fff;
}
}










.brand {
    min-width: 0;
}

.brand-title {
    margin: 0;
    font-size: 18px;
    font-weight: 650;
}

.brand-subtitle {
    margin: 2px 0 0;
    color: var(--fluent-muted);
    font-size: 13px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
            /* background: #9da2cd;
        padding-bottom: 14px; */
}

.nav a,
.btn,
button.btn {
    border: 1px solid var(--fluent-border);
    border-radius: var(--fluent-radius);
    background: var(--fluent-surface);
    color: var(--fluent-text);
    min-height: 36px;
    padding: 8px 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.nav a.active,
.btn.primary,
button.btn.primary {
    background: var(--fluent-primary);
    border-color: var(--fluent-primary);
    color: #fff;
}

.btn:hover,
.nav a:hover {
    border-color: var(--fluent-border-strong);
}

.btn.primary:hover {
    background: var(--fluent-primary-hover);
}

.btn.danger {
    background: var(--fluent-danger);
    border-color: var(--fluent-danger);
    color: #fff;
}

.hero-band {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin: 22px 0 16px;
}

.hero-band h1 {
    margin: 0;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.12;
}

.hero-band p {
    margin: 6px 0 0;
    color: var(--fluent-muted);
    font-size: 15px;
}

.card {
    background: var(--fluent-card);
    border: 1px solid var(--fluent-border);
    border-radius: var(--fluent-radius);
    box-shadow: var(--fluent-shadow);
}

.panel {
    background: var(--fluent-surface);
    border: 1px solid var(--fluent-border);
    border-radius: var(--fluent-radius);
    padding: 16px;
}

.grid {
    display: grid;
    gap: 14px;
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field label,
label.field-label {
    display: block;
    margin: 0 0 6px;
    color: #323842;
    font-size: 13px;
    font-weight: 650;
}

input,
select,
textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--fluent-border);
    border-radius: var(--fluent-radius);
    padding: 9px 11px;
    background: #fff;
    color: var(--fluent-text);
    font: inherit;
}

textarea {
    min-height: 96px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(15, 108, 189, 0.24);
    border-color: var(--fluent-primary);
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 700;
}

.badge.info {
    background: var(--fluent-primary-soft);
    color: #0b4778;
}

.badge.success {
    background: #e9f6e9;
    color: var(--fluent-success);
}

.badge.warning {
    background: #fff4ce;
    color: #7a5200;
}

.badge.danger {
    background: var(--fluent-danger-soft);
    color: var(--fluent-danger);
}

.notice {
    border-radius: var(--fluent-radius);
    padding: 12px 14px;
    border: 1px solid var(--fluent-border);
    background: var(--fluent-surface-alt);
    color: var(--fluent-text);
}

.notice.error {
    background: var(--fluent-danger-soft);
    border-color: #f3b4bb;
}

.notice.success {
    background: #e9f6e9;
    border-color: #b7dfb7;
}

.notice.warning {
    background: #fff8e1;
    border-color: #f4d98b;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--fluent-border);
    border-radius: var(--fluent-radius);
    background: #fff;
}

table.fluent-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.fluent-table th,
.fluent-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--fluent-border);
    vertical-align: top;
    font-size: 14px;
}

.fluent-table th {
    background: var(--fluent-surface-alt);
    color: #323842;
    font-weight: 700;
}

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

.empty {
    color: var(--fluent-muted);
    padding: 18px;
    text-align: center;
}
@media (max-width: 780px) {
    .app-bar-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-band {
        align-items: stretch;
        flex-direction: column;
    }

    .menu-toggle {
        display: block;
        width: 100%;
        min-height: 40px;
        padding: 8px 12px;
        border: 1px solid var(--fluent-border);
        border-radius: var(--fluent-radius);
        background: var(--fluent-primary);
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
    }

    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        overflow: visible;
        padding-bottom: 0;
                background: #9da2cd;
        padding-bottom: 14px;
    }

    .nav.open {
        display: flex;
    }

    .nav a,
    .nav .badge {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .grid.two,
    .grid.three {
        grid-template-columns: 1fr;
    }
}
