:root {
    --surface-0: #ffffff;
    --surface-1: #f8fafc;
    --stroke-soft: #dbe5ef;
    --text-soft: #64748b;
    --sidebar-width: 308px;
    --brand-accent: #c89b32;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--brand-text, #212529);
    font-family: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: radial-gradient(1200px 500px at 12% -5%, #ffffff 0%, transparent 70%), var(--brand-bg, #f4f7fb);
}

img,
svg {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--brand-primary, #0d6efd);
}

a:hover {
    color: var(--brand-primary, #0d6efd);
    filter: brightness(0.85);
}

.btn,
.form-control,
.form-select {
    border-radius: 12px;
}

.btn {
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--brand-primary, #0d6efd);
    border-color: var(--brand-primary, #0d6efd);
    box-shadow: 0 8px 18px rgba(2, 132, 199, 0.2);
}

.btn-primary:hover {
    filter: brightness(0.95);
}

.card {
    border-radius: 16px;
    border-color: var(--stroke-soft);
    overflow: hidden;
}

.card-header {
    border-bottom-color: var(--stroke-soft);
    padding: 0.9rem 1rem;
}

.card-body {
    padding: 1rem;
}

.app-layout {
    min-height: 100vh;
    display: block;
}

.app-sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background:
        radial-gradient(500px 160px at 20% -5%, rgba(255, 255, 255, 0.15), transparent 70%),
        linear-gradient(180deg, #22324a 0%, var(--brand-secondary, #1f2937) 100%);
    color: #e2e8f0;
    padding: 20px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-right: 1px solid rgba(148, 163, 184, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
    overflow-y: auto;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.24);
}

.app-brand {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.68rem;
    text-decoration: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    padding: 0.82rem 0.74rem;
}

.app-brand > div {
    min-width: 0;
}

.app-brand-logo {
    width: 100%;
    max-width: 286px;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.3);
    flex: 0 0 auto;
    background: #ffffff;
    padding: 0.25rem;
}

.app-brand-logo-placeholder {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
}

.app-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.app-brand-subtitle {
    font-size: 0.88rem;
    color: #c7dcff;
    line-height: 1.2;
}

.app-nav {
    display: grid;
    gap: 8px;
}

.app-nav-link {
    color: #cbd5e1;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 1.02rem;
    line-height: 1.2;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.app-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateX(2px);
}

.app-nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-primary, #0d6efd), #1d4ed8);
    border-color: rgba(255, 255, 255, 0.22);
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(30, 64, 175, 0.32);
}

.app-sidebar-footer {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 14px;
}

.app-user-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 10px;
}

.app-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-main {
    flex: 1;
    max-width: 100%;
}

.app-footer {
    border-top: 1px solid var(--stroke-soft);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    padding: 10px 18px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.action-row .btn {
    flex: 1 1 210px;
}

.card-stat .value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.dashboard-hero {
    border-radius: 16px;
    padding: 14px 16px;
    color: #ffffff;
    background: linear-gradient(120deg, var(--brand-primary, #0d6efd), #1e40af);
    box-shadow: 0 15px 24px rgba(30, 64, 175, 0.2);
}

.dashboard-primary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-primary-btn {
    border-radius: 14px;
    padding: 14px 15px;
    text-decoration: none;
    color: #0f172a;
    background: var(--surface-0);
    border: 1px solid #d5deea;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-primary-btn:hover {
    transform: translateY(-1px);
    border-color: var(--brand-primary, #0d6efd);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.dashboard-primary-title {
    display: block;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 3px;
}

.dashboard-primary-desc {
    display: block;
    font-size: 0.82rem;
    color: #475569;
}

.dashboard-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-quick-btn {
    text-align: left;
    border: 1px solid #d8deeb;
    border-radius: 10px;
    background: #ffffff;
    color: #1f2937;
    padding: 10px 12px;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.dashboard-quick-btn:hover {
    border-color: var(--brand-primary, #0d6efd);
    transform: translateY(-1px);
}

.dashboard-quick-label {
    display: block;
    font-weight: 700;
    font-size: 0.92rem;
}

.dashboard-quick-desc {
    display: block;
    font-size: 0.76rem;
    color: var(--text-soft);
    margin-top: 2px;
}

.table-responsive {
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.table {
    margin-bottom: 0;
}

.table td,
.table th {
    vertical-align: middle;
}

.table thead th {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    white-space: nowrap;
}

.table thead th a {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.table thead th a:hover {
    color: var(--brand-primary, #0d6efd);
    text-decoration: underline;
}

.bird-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.bird-actions .btn {
    white-space: nowrap;
}

.avatar-thumb-sm {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #dee2e6;
}

.avatar-thumb-md {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #dee2e6;
}

.auth-logo {
    width: min(100%, 360px);
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    background: #ffffff;
    padding: 0.3rem;
}

.brand-preview-logo {
    width: min(100%, 420px);
    max-height: 138px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    background: #ffffff;
    padding: 0.25rem;
}

.media-preview {
    max-width: 160px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.landing-page {
    display: grid;
    gap: 1.5rem;
    padding-bottom: 1rem;
    position: relative;
}

.landing-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.35rem 0;
}

.landing-page::before {
    content: "";
    position: absolute;
    inset: -12px -8px auto -8px;
    height: 340px;
    background:
        radial-gradient(500px 220px at 2% 5%, rgba(11, 47, 120, 0.2), transparent 72%),
        radial-gradient(440px 200px at 88% 2%, rgba(200, 155, 50, 0.14), transparent 74%);
    z-index: -1;
    pointer-events: none;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
}

.landing-brand img,
.landing-brand-mark {
    width: auto;
    height: 82px;
    border-radius: 8px;
    object-fit: contain;
}

.landing-brand-mark {
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, var(--brand-primary, #0d6efd), var(--brand-secondary, #1f2937));
    color: #ffffff;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    width: 42px;
}

.landing-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 2.2rem 1.6rem;
    background:
        radial-gradient(540px 220px at 88% -2%, rgba(255, 255, 255, 0.2) 0%, transparent 74%),
        radial-gradient(360px 190px at 5% 95%, rgba(200, 155, 50, 0.14) 0%, transparent 78%),
        linear-gradient(128deg, var(--brand-secondary, #071d4e) 0%, var(--brand-primary, #0b2f78) 60%, #123b8c 100%);
    color: #ffffff;
    border: 1px solid rgba(191, 219, 254, 0.24);
    box-shadow: 0 24px 42px rgba(15, 23, 42, 0.34);
}

.landing-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.1), transparent 28%, transparent 76%, rgba(255, 255, 255, 0.08));
    pointer-events: none;
}

.landing-kicker {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(200, 155, 50, 0.42);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.landing-hero h1 {
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    line-height: 1.14;
    margin-bottom: 0.9rem;
}

.landing-hero p {
    max-width: 760px;
    color: rgba(248, 250, 252, 0.95);
    margin-bottom: 0;
}

.landing-hero-actions {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.landing-hero-actions .btn-light {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(147, 197, 253, 0.26);
}

.landing-hero-actions .btn-primary {
    box-shadow: 0 12px 24px rgba(30, 64, 175, 0.34);
}

.landing-section {
    border-radius: 18px;
    padding: 1.2rem 1.1rem;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.9));
    border: 1px solid #d6e0ee;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(4px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.landing-section:hover {
    transform: translateY(-2px);
    border-color: #c5d8f6;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.11);
}

.landing-section-head h2 {
    margin: 0;
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
}

.landing-section-head p {
    margin: 0.45rem 0 0;
    color: #475569;
}

.landing-screen-grid {
    margin-top: 1rem;
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-screen-card {
    position: relative;
    border: 1px solid #d7e3f4;
    border-radius: 14px;
    padding: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.landing-screen-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary, #0b2f78), var(--brand-accent, #c89b32));
    opacity: 0.85;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.landing-screen-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.1);
    border-color: #c2d6f5;
}

.landing-screen-card h3 {
    margin: 0.4rem 0 0.35rem;
    font-size: 1rem;
}

.landing-screen-card p {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
}

.landing-screen-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #7c5a12;
    background: linear-gradient(135deg, #fff8e8, #ffefc8);
    border: 1px solid #efda9d;
    border-radius: 999px;
    padding: 0.24rem 0.58rem;
    font-weight: 700;
}

.landing-benefit-grid {
    margin-top: 1rem;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-benefit-item {
    border: 1px solid #d7e3f4;
    border-radius: 14px;
    padding: 0.95rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.landing-benefit-item:hover {
    transform: translateY(-3px);
    border-color: #c2d6f5;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.1);
}

.landing-benefit-item h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.landing-benefit-item p {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
}

.landing-management {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1.2fr 1fr;
}

.landing-management h2 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.2rem, 2.4vw, 1.5rem);
}

.landing-management p {
    margin: 0;
    color: #475569;
}

.landing-management ol {
    margin: 0;
    padding-left: 1.1rem;
    color: #1f2937;
    display: grid;
    gap: 0.45rem;
    font-size: 0.95rem;
}

.landing-cta {
    border-radius: 18px;
    padding: 1.6rem 1.2rem;
    background:
        radial-gradient(320px 180px at 10% 0%, rgba(200, 155, 50, 0.18), transparent 72%),
        linear-gradient(120deg, #fbfcff, #e9eef8);
    border: 1px solid #d6deec;
    text-align: center;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.09);
}

.landing-cta h2 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
}

.landing-cta p {
    margin: 0 0 1rem;
    color: #475569;
}

.badge-manager-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(390px, 1fr));
    gap: 0.85rem;
}

.badge-shell .card-body {
    padding: 0.85rem;
}

.bird-id-card-print {
    width: min(100%, 390px);
    min-height: 244px;
    border-radius: 14px;
    border: 1px solid #d3ddec;
    background:
        radial-gradient(280px 120px at 0% 0%, rgba(30, 64, 175, 0.13), transparent 70%),
        #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    padding: 0.75rem;
}

.bird-id-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.bird-id-card-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.bird-id-card-brand img,
.bird-id-card-brand-fallback {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.bird-id-card-brand-fallback {
    display: grid;
    place-items: center;
    background: #dbeafe;
    color: #1e40af;
    font-weight: 700;
    font-size: 0.82rem;
}

.bird-id-card-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.bird-id-card-subtitle {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.1;
}

.bird-id-card-code {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-primary, #0d6efd), #1d4ed8);
    border-radius: 999px;
    padding: 0.35rem 0.58rem;
    white-space: nowrap;
}

.bird-id-card-body {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 0.55rem;
}

.bird-id-card-photo {
    width: 92px;
    height: 126px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #d6deeb;
}

.bird-id-card-photo-empty {
    display: grid;
    place-items: center;
    color: #64748b;
    background: #f8fafc;
    font-size: 0.72rem;
}

.bird-id-card-info {
    font-size: 0.75rem;
    color: #1e293b;
    display: grid;
    gap: 0.2rem;
    line-height: 1.25;
}

.badge-actions {
    flex-wrap: wrap;
}

.badge-sex-M {
    background-color: #0d6efd;
}

.badge-sex-F {
    background-color: #d63384;
}

.badge-sex-U {
    background-color: #6c757d;
}

@media (max-width: 991px) {
    .app-layout {
        flex-direction: column;
    }

    .app-sidebar {
        position: sticky;
        left: auto;
        box-shadow: none;
        width: 100%;
        height: auto;
        max-height: none;
        padding: 12px 10px;
        gap: 10px;
        z-index: 1025;
        backdrop-filter: blur(8px);
    }

    .app-content {
        margin-left: 0;
        width: 100%;
        min-height: 0;
    }

    .app-nav {
        display: flex;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 2px;
    }

    .app-nav-link {
        white-space: nowrap;
    }

    .app-sidebar-footer {
        margin-top: 2px;
        border-top: 0;
        padding-top: 0;
    }

    .app-brand {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 1px 0;
        background: transparent;
        border: 0;
    }

    .app-brand-logo,
    .app-brand-logo-placeholder {
        width: 172px;
        max-width: 172px;
        min-width: 172px;
        height: auto;
        min-height: 0;
        border-radius: 8px;
        font-size: 0.64rem;
        padding: 0.12rem;
    }

    .app-brand-name {
        font-size: 0.84rem;
        line-height: 1.1;
    }

    .app-brand-subtitle {
        display: none;
    }

    .app-user-name {
        margin-bottom: 4px;
        font-size: 0.78rem;
    }

    .app-footer {
        padding: 10px 12px;
    }

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

    .dashboard-primary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .app-main.container-fluid {
        padding-top: 0.8rem !important;
        padding-left: 0.8rem !important;
        padding-right: 0.8rem !important;
    }

    .app-sidebar {
        padding: 8px 8px;
        gap: 7px;
    }

    .app-nav {
        gap: 5px;
    }

    .app-nav-link {
        font-size: 0.8rem;
        padding: 7px 8px;
        border-radius: 8px;
    }

    .app-sidebar-footer {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-top: 0;
    }

    .app-sidebar-footer .btn {
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }

    .app-user-name {
        display: none;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .page-actions {
        width: 100%;
    }

    .page-actions .btn {
        width: 100%;
    }

.table-responsive > .table {
        min-width: 620px;
    }

    .card-stat .value {
        font-size: 1.75rem;
    }

    .landing-hero {
        padding: 1.55rem 1.05rem;
    }

    .landing-screen-grid,
    .landing-benefit-grid,
    .landing-management {
        grid-template-columns: 1fr;
    }

    .landing-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-topbar .btn {
        width: 100%;
    }

    .badge-manager-grid {
        grid-template-columns: 1fr;
    }

    .bird-id-card-print {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .app-main.container-fluid {
        padding-left: 0.65rem !important;
        padding-right: 0.65rem !important;
    }

    .app-brand-logo,
    .app-brand-logo-placeholder {
        width: 148px;
        max-width: 148px;
        min-width: 148px;
        height: auto;
        min-height: 0;
        border-radius: 8px;
    }

    .landing-brand img,
    .landing-brand-mark {
        height: 66px;
    }

    .app-brand-name {
        font-size: 0.8rem;
    }

    .app-brand-subtitle {
        font-size: 0.68rem;
    }

    .app-nav-link {
        padding: 6px 7px;
        font-size: 0.76rem;
    }

    .app-sidebar-footer {
        display: none;
    }

    .card-body {
        padding: 0.85rem;
    }

    .dashboard-hero {
        padding: 12px 12px;
    }

    .dashboard-primary-btn,
    .dashboard-quick-btn {
        padding: 10px 11px;
    }

    .dashboard-primary-title {
        font-size: 0.95rem;
    }

    .dashboard-quick-label {
        font-size: 0.86rem;
    }

    .btn {
        padding: 0.48rem 0.72rem;
    }

    .table thead th {
        font-size: 0.7rem;
    }
}

@media (max-width: 360px) {
    .app-main.container-fluid {
        padding-left: 0.55rem !important;
        padding-right: 0.55rem !important;
    }

    .h3,
    h1.h3 {
        font-size: 1.3rem;
    }

    .page-header {
        gap: 0.55rem;
    }

    .app-sidebar {
        padding: 7px 7px;
    }

    .app-nav-link {
        font-size: 0.72rem;
        padding: 6px 6px;
    }

    .card-header {
        padding: 0.75rem 0.8rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    .dashboard-primary-desc,
    .dashboard-quick-desc {
        font-size: 0.74rem;
    }

    .card-stat .value {
        font-size: 1.55rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 575px) {
    .dashboard-quick-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 8mm;
    }

    body {
        background: #ffffff !important;
    }

    .app-sidebar,
    .app-footer,
    .page-header,
    .badge-manager-toolbar,
    .badge-actions {
        display: none !important;
    }

    .app-content {
        margin: 0 !important;
        width: 100% !important;
    }

    .app-main.container-fluid {
        padding: 0 !important;
    }

    .badge-manager-grid {
        display: block !important;
    }

    .badge-shell {
        border: 0 !important;
        box-shadow: none !important;
        margin: 0 0 6mm 0 !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .bird-id-card-print {
        width: 96mm !important;
        min-width: 96mm !important;
        max-width: 96mm !important;
        height: 62mm !important;
        min-height: 62mm !important;
        max-height: 62mm !important;
        margin: 0 auto !important;
        border: 0.3mm solid #cbd5e1 !important;
        box-shadow: none !important;
    }

    body[data-print-mode="single"] .badge-shell {
        display: none !important;
    }

    body[data-print-mode="single"] .badge-shell.is-print-target {
        display: block !important;
    }
}
