/* Nidhi PHARMA brand + teal primary theme */

:root {
    --nidhi-teal: #176876;
    --nidhi-teal-dark: #145a66;
    --nidhi-teal-darker: #0f4a54;
    --nidhi-teal-light: #e6f4f6;
    --nidhi-teal-soft: #c5e4e9;
    --nidhi-teal-muted: #a8d5db;
    --nidhi-teal-border: #9ecfd6;
    --nidhi-teal-text: #0f3d45;
    --nidhi-purple: #9258f1;
    --nidhi-orange: #fc7303;
    --nidhi-blue: var(--nidhi-teal-darker);
    --nidhi-navy: var(--nidhi-teal-darker);
    --primary: #176876;
}

/* —— Wordmark —— */
.nidhi-brand-mark {
    display: inline-flex;
    align-items: stretch;
    margin-left: 1rem;
    margin-right: 0.75rem;
    vertical-align: middle;
    line-height: 1;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(23, 104, 118, 0.18), 0 4px 12px rgba(15, 74, 84, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-brand:hover .nidhi-brand-mark {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(23, 104, 118, 0.22), 0 6px 16px rgba(15, 74, 84, 0.22);
}

.nidhi-brand-mark__nidhi,
.nidhi-brand-mark__pharma,
.nidhi-brand-mark__product {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.65rem;
    color: #fff;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    user-select: none;
}

.nidhi-brand-mark__nidhi {
    background: var(--nidhi-teal);
    font-weight: 600;
}

.nidhi-brand-mark__pharma,
.nidhi-brand-mark__product {
    background: var(--nidhi-blue);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

@media (max-width: 575.98px) {
    .nidhi-brand-mark {
        margin-left: 0.5rem;
        margin-right: 0.35rem;
    }

    .nidhi-brand-mark__nidhi,
    .nidhi-brand-mark__pharma,
    .nidhi-brand-mark__product {
        padding: 0.28rem 0.5rem;
        font-size: 0.82rem;
    }
}

/* —— Global primary overrides (teal) —— */
.btn-primary {
    color: #fff !important;
    background-color: var(--nidhi-teal) !important;
    border-color: var(--nidhi-teal) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
    color: #fff !important;
    background-color: var(--nidhi-teal-dark) !important;
    border-color: var(--nidhi-teal-dark) !important;
}

.btn-primary:focus,
.btn-primary.focus,
.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-primary.dropdown-toggle:focus {
    box-shadow: 0 0 0 2px rgba(23, 104, 118, 0.35) !important;
}

.btn-outline-primary {
    color: var(--nidhi-teal) !important;
    border-color: var(--nidhi-teal) !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.show > .btn-outline-primary.dropdown-toggle {
    color: #fff !important;
    background-color: var(--nidhi-teal) !important;
    border-color: var(--nidhi-teal) !important;
}

.bg-primary,
a.bg-primary:hover,
a.bg-primary:focus,
button.bg-primary:hover,
button.bg-primary:focus {
    background-color: var(--nidhi-teal) !important;
    color: #fff !important;
}

.text-primary,
a.text-primary:hover,
a.text-primary:focus {
    color: var(--nidhi-teal) !important;
}

.border-primary {
    border-color: var(--nidhi-teal) !important;
}

.badge-primary,
.page-item.active .page-link,
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: var(--nidhi-teal) !important;
    border-color: var(--nidhi-teal) !important;
    color: #fff !important;
}

.page-link {
    color: var(--nidhi-teal);
}

.page-link:hover {
    color: var(--nidhi-teal-dark);
}

.custom-control-input:checked ~ .custom-control-label::before,
.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before,
.custom-radio .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--nidhi-teal) !important;
    border-color: var(--nidhi-teal) !important;
}

.form-control:focus,
.custom-select:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default .select2-selection--single:focus {
    border-color: var(--nidhi-teal-muted) !important;
    box-shadow: 0 0 0 0.2rem rgba(23, 104, 118, 0.2) !important;
}

/* Entry form page titles (Sales Entry / Purchase Entry) */
.nidhi-entry-title {
    margin: 0;
    color: var(--nidhi-teal-darker);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-wrap: balance;
    line-height: 1.15;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.45),
        2px 3px 10px rgba(23, 104, 118, 0.38);
}

/* Soft teal form header bands (Entry Miti / bill header areas) */
.nidhi-form-band {
    background-color: var(--nidhi-teal-soft) !important;
    color: var(--nidhi-teal-text) !important;
}

.nidhi-form-band .form-control {
    background-color: #eff8f9 !important;
    color: #0f172a !important;
}

.nidhi-form-band .text-black,
.nidhi-form-band .input-group-addons {
    color: var(--nidhi-teal-text) !important;
}

/* Quick-add trigger (+) on entry forms */
.nidhi-quick-add-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    margin-left: 0.25rem;
    border-radius: 6px;
    cursor: pointer;
    vertical-align: middle;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nidhi-quick-add-trigger:active {
    transform: scale(0.96);
}

.nidhi-kbd-hint {
    display: inline-flex;
    align-items: center;
    margin-left: 0.2rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #334155;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.3;
    vertical-align: middle;
    white-space: nowrap;
}

.nidhi-expiry-wrap {
    display: flex;
    align-items: stretch;
    min-width: 8.25rem;
}

.nidhi-expiry-wrap .expiry-input {
    flex: 1 1 auto;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.nidhi-expiry-cal-btn {
    flex: 0 0 1.7rem;
    width: 1.7rem;
    min-width: 1.7rem;
    padding: 0;
    border: 1px solid #c5d4d8;
    border-left: 0;
    border-radius: 0 4px 4px 0;
    background: #eef6f7;
    color: #176876;
    cursor: pointer;
}

.nidhi-expiry-cal-btn:hover {
    background: #dcecee;
}

.nidhi-expiry-cal-btn:active {
    transform: scale(0.96);
}

#vendorQuickAddModal .modal-content,
#customerQuickAddModal .modal-content {
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 14px 32px rgba(23, 104, 118, 0.14);
}

#vendorQuickAddModal .modal-header,
#customerQuickAddModal .modal-header {
    background: var(--nidhi-teal-soft, #e6f4f6);
    border-bottom: 1px solid rgba(23, 104, 118, 0.1);
}

#vendorQuickAddModal .form-control,
#customerQuickAddModal .form-control {
    border-radius: 8px;
}

#vendorQuickAddModal .btn-primary:active,
#customerQuickAddModal .btn-primary:active {
    transform: scale(0.96);
}

/* Tabs / nav accents — beat leftover #4960f3 from style.css */
.tabs-menu ul li .active,
.tabs-menu ul li a.active,
.sidebar .tabs-menu ul li .active {
    background: var(--nidhi-teal) !important;
    color: #fff !important;
}

.nav-tabs .nav-link:hover:not(.disabled):not(.bg-success) {
    background-color: var(--nidhi-teal-dark) !important;
    color: #fff !important;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    background-color: var(--nidhi-teal) !important;
    color: #fff !important;
    border-color: var(--nidhi-teal-border) var(--nidhi-teal-border) #fff !important;
}

.nav-tabs .nav-link.bg-success,
.nav-tabs .nav-link.active.bg-success {
    background-color: #28a745 !important;
    color: #fff !important;
}

/* Solid teal surfaces always use white text */
.nav-tabs .nav-link.bg-primary,
.nav-tabs .nav-link.active.bg-primary,
.nav-link.bg-primary,
a.bg-primary,
span.bg-primary,
.bg-primary,
.bg-gradient-primary,
.bg-gradient-primary td,
.bg-gradient-primary th,
.bg-gradient-primary span,
thead.bg-gradient-primary,
thead.bg-gradient-primary td,
thead.bg-gradient-primary th,
.table .bg-gradient-primary,
.table .bg-gradient-primary td,
.modern-table thead.bg-gradient-primary td,
.modern-table thead.bg-gradient-primary th {
    background-color: var(--nidhi-teal) !important;
    color: #fff !important;
}

/* Table headers use dark teal instead of royal blue / navy */
thead.bg-primary,
thead.bg-primary td,
thead.bg-primary th,
.thead.bg-primary,
.thead.bg-primary td,
.thead.bg-primary th {
    background-color: var(--nidhi-teal-darker) !important;
    color: #fff !important;
}

/* Soft / light teal label chips keep dark text */
.input-group-addon,
.input-group-addons {
    color: var(--nidhi-teal-text) !important;
}

/* Links */
a.text-primary,
.nidhi-url.text-primary {
    color: var(--nidhi-teal) !important;
}

/* —— Shimmer loader (snowy-1.svg accent) —— */
@keyframes nidhi-shimmer-sweep {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes nidhi-shimmer-soft-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.82; transform: scale(0.97); }
}

.nidhi-shimmer-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 220px;
    padding: 2rem 1.25rem;
    box-sizing: border-box;
}

.nidhi-shimmer-loader__panel {
    width: min(420px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.nidhi-shimmer-loader__icon {
    display: none !important;
}

.nidhi-shimmer-loader__lines {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.nidhi-shimmer-loader__line {
    display: block;
    height: 12px;
    width: 100%;
    border-radius: 6px;
    background: linear-gradient(
        90deg,
        #e8eef0 0%,
        #e8eef0 35%,
        #f7fbfc 50%,
        #e8eef0 65%,
        #e8eef0 100%
    );
    background-size: 200% 100%;
    animation: nidhi-shimmer-sweep 1.35s ease-in-out infinite;
}

.nidhi-shimmer-loader__line--mid {
    width: 82%;
}

.nidhi-shimmer-loader__line--short {
    width: 64%;
}

.nidhi-shimmer-loader__line:nth-child(2) { animation-delay: 0.08s; }
.nidhi-shimmer-loader__line:nth-child(3) { animation-delay: 0.16s; }
.nidhi-shimmer-loader__line:nth-child(4) { animation-delay: 0.24s; }

/* Inline date/field loaders — keep snowy mark, soft pulse */
.nidhi-inline-loader img,
#from-loader img,
#to-loader img {
    width: 28px !important;
    height: 28px !important;
    animation: nidhi-shimmer-soft-pulse 1.2s ease-in-out infinite;
}

/* SPA content loader — sits in normal flow while #app is cleared */
#global-loader-main.nidhi-shimmer-loader {
    position: relative;
    z-index: 40;
    min-height: 280px;
    margin: 0;
    background: #fff;
    text-align: center;
}

/* In-page loaders (tables/modals) — relative so they work without positioned parents */
#global-loader.nidhi-shimmer-loader {
    position: relative;
    z-index: 40;
    min-height: 220px;
    margin: 0;
    background: rgba(255, 255, 255, 0.96);
    text-align: center;
}

/* Initial document loader (head.php) — cover the viewport */
body > #global-loader.nidhi-shimmer-loader {
    position: fixed;
    z-index: 50000;
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.96);
}

/* Legacy page loaders that still use #global-loader without the class */
#global-loader:not(.nidhi-shimmer-loader) {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
}

#global-loader:not(.nidhi-shimmer-loader) img {
    width: 72px !important;
    height: 72px !important;
    position: static;
    top: auto;
    margin: 0;
    animation: nidhi-shimmer-soft-pulse 1.6s ease-in-out infinite;
}

/* —— Fixed app footer (company meta + copyright) —— */
.nidhi-app-footer {
    background: var(--nidhi-teal) !important;
    color: #fff !important;
    font-size: 0.68rem;
    line-height: 1.35;
    z-index: 1030;
    box-shadow: 0 -2px 10px rgba(15, 61, 69, 0.18);
}

.nidhi-app-footer__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.28rem 0.35rem;
    padding: 0.28rem 0.45rem 0.15rem;
}

.nidhi-app-footer__chip {
    display: inline-block;
    max-width: 100%;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: #fff;
    color: var(--nidhi-teal) !important;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
    text-align: center;
}

.nidhi-app-footer__copy {
    padding: 0.15rem 0.5rem 0.35rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 0.6rem;
    line-height: 1.4;
}

.nidhi-app-footer__copy a {
    color: #dff6f8 !important;
    text-decoration: underline;
}

.nidhi-app-footer__copy a:hover {
    color: #fff !important;
}

@media (max-width: 767.98px) {
    .nidhi-app-footer {
        font-size: 0.62rem;
    }

    .nidhi-app-footer__meta {
        gap: 0.22rem;
        padding: 0.28rem 0.4rem 0.12rem;
    }

    .nidhi-app-footer__chip {
        flex: 1 1 calc(50% - 0.22rem);
        min-width: 0;
        font-size: 0.58rem;
        padding: 0.18rem 0.4rem;
    }

    /* Mobile: keep only Initial + Company */
    .nidhi-app-footer__chip--extra,
    .nidhi-app-footer__copy-extra {
        display: none !important;
    }

    .nidhi-app-footer__copy {
        font-size: 0.55rem;
        padding: 0.05rem 0.4rem 0.28rem;
    }
}

@media (max-width: 479.98px) {
    .nidhi-app-footer__chip--basic {
        flex: 1 1 100%;
    }
}

/* —— Header global search —— */
.app-header .nidhi-header-bar {
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.nidhi-global-search {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 560px;
    margin: 0 1rem 0 0.85rem;
    z-index: 1040;
}

.nidhi-global-search__field {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 0.35rem 0 0.7rem;
    border: 1px solid var(--nidhi-border, #e2e8f0);
    border-radius: 12px;
    background: var(--nidhi-bg-muted, #f1f5f9);
    box-shadow: 0 1px 2px rgba(15, 61, 69, 0.04);
    transition-property: border-color, box-shadow, background;
    transition-duration: 0.16s;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.nidhi-global-search__field:focus-within {
    background: var(--nidhi-bg-elevated, #fff);
    border-color: var(--nidhi-teal-border, #9ecfd6);
    box-shadow: 0 0 0 3px rgba(23, 104, 118, 0.12), 0 4px 14px rgba(15, 74, 84, 0.08);
}

.nidhi-global-search__icon {
    flex: 0 0 auto;
    margin-right: 0.45rem;
    color: var(--nidhi-text-muted, #64748b);
    font-size: 14px;
}

.nidhi-global-search__field input {
    flex: 1 1 auto;
    min-width: 0;
    height: 38px;
    padding: 0 4.6rem 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--nidhi-text, #1a202c);
    font-size: 0.9rem;
    line-height: 1.2;
}

.nidhi-global-search__field input::placeholder {
    color: var(--nidhi-text-muted, #94a3b8);
}

.nidhi-global-search__field input::-webkit-search-cancel-button,
.nidhi-global-search__field input::-webkit-search-decoration {
    -webkit-appearance: none;
}

.nidhi-global-search__hint {
    position: absolute;
    right: 0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 22px;
    padding: 0 0.4rem;
    border: 1px solid var(--nidhi-border, #e2e8f0);
    border-radius: 6px;
    background: var(--nidhi-bg-elevated, #fff);
    color: var(--nidhi-text-muted, #64748b);
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1;
    pointer-events: none;
}

.nidhi-global-search__clear {
    position: absolute;
    right: 0.28rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--nidhi-text-muted, #64748b);
    cursor: pointer;
    transition-property: background, color, transform;
    transition-duration: 0.15s;
}

.nidhi-global-search__clear:hover {
    background: var(--nidhi-teal-light, #e6f4f6);
    color: var(--nidhi-teal, #176876);
}

.nidhi-global-search__clear:active {
    transform: scale(0.96);
}

.nidhi-global-search__field:focus-within .nidhi-global-search__hint,
.nidhi-global-search.has-query .nidhi-global-search__hint {
    display: none;
}

.nidhi-global-search__dropdown {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    max-height: min(420px, 70vh);
    overflow: auto;
    padding: 0.35rem;
    border: 1px solid var(--nidhi-border, #e2e8f0);
    border-radius: 14px;
    background: var(--nidhi-bg-elevated, #fff);
    box-shadow: 0 8px 28px rgba(15, 61, 69, 0.14), 0 2px 8px rgba(15, 61, 69, 0.06);
    z-index: 1050;
}

.nidhi-global-search__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nidhi-global-search__item {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    gap: 0.7rem;
    padding: 0.45rem 0.55rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--nidhi-text, #1a202c);
    text-align: left;
    cursor: pointer;
    transition-property: background, transform;
    transition-duration: 0.15s;
}

.nidhi-global-search__item:hover,
.nidhi-global-search__item.is-active {
    background: var(--nidhi-teal-light, #e6f4f6);
}

.nidhi-global-search__item:active {
    transform: scale(0.96);
}

.nidhi-global-search__item-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(23, 104, 118, 0.1);
    color: var(--nidhi-teal, #176876);
    font-size: 14px;
}

.nidhi-global-search__item-body {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.nidhi-global-search__item-title {
    overflow: hidden;
    color: var(--nidhi-text, #1a202c);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nidhi-global-search__item-title mark {
    padding: 0;
    background: rgba(23, 104, 118, 0.18);
    color: inherit;
    font-weight: 800;
}

.nidhi-global-search__item-meta {
    overflow: hidden;
    color: var(--nidhi-text-muted, #64748b);
    font-size: 0.72rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nidhi-global-search__item-type {
    flex: 0 0 auto;
    padding: 0.12rem 0.42rem;
    border-radius: 999px;
    background: var(--nidhi-bg-muted, #f1f5f9);
    color: var(--nidhi-text-muted, #64748b);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nidhi-global-search__item-type--vendor {
    background: rgba(63, 81, 181, 0.12);
    color: #3f51b5;
}

.nidhi-global-search__item-type--customer {
    background: rgba(156, 39, 176, 0.12);
    color: #9c27b0;
}

.nidhi-global-search__item-type--other {
    background: rgba(23, 104, 118, 0.12);
    color: #176876;
}

.nidhi-global-search__item-icon--ledger {
    background: rgba(23, 104, 118, 0.12);
}

.nidhi-global-search__loading {
    display: flex;
    min-height: 36px;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.7rem;
    color: var(--nidhi-text-muted, #64748b);
    font-size: 0.78rem;
}

.nidhi-global-search__empty {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem;
    color: var(--nidhi-text-muted, #64748b);
    font-size: 0.85rem;
}

.nidhi-global-search__empty .fa {
    color: #cbd5e1;
}

@media (max-width: 991.98px) {
    .nidhi-global-search {
        max-width: none;
        margin: 0 0.65rem 0 0.45rem;
    }

    .nidhi-global-search__hint {
        display: none;
    }

    .nidhi-global-search__field input {
        padding-right: 2.2rem;
    }
}

@media (max-width: 575.98px) {
    .nidhi-global-search__field input {
        font-size: 0.82rem;
    }

    .nidhi-global-search__field input::placeholder {
        font-size: 0.78rem;
    }
}

/* —— Header bilingual clock —— */
.nidhi-header-clock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    min-width: 0;
    height: 44px;
    margin-right: 0.55rem;
    padding: 3px 10px 3px 4px;
    border-radius: 12px;
    background: var(--nidhi-bg-muted, #f1f5f9);
    box-shadow: 0 1px 2px rgba(15, 61, 69, 0.05), 0 4px 12px rgba(15, 61, 69, 0.05);
    color: var(--nidhi-text, #1a202c);
}

.nidhi-header-clock__face {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
}

.nidhi-header-clock__face svg {
    display: block;
    overflow: visible;
    width: 34px;
    height: 34px;
}

.nidhi-header-clock__dial {
    fill: var(--nidhi-bg-elevated, #fff);
    stroke: var(--nidhi-teal, #176876);
    stroke-width: 1.6;
}

.nidhi-header-clock__ticks line {
    stroke: var(--nidhi-teal-darker, #0f4a54);
    stroke-width: 1.15;
    stroke-linecap: round;
}

.nidhi-header-clock__hand {
    fill: none;
    stroke-linecap: round;
}

.nidhi-header-clock__hand--hour {
    stroke: var(--nidhi-teal-darker, #0f4a54);
    stroke-width: 2.2;
}

.nidhi-header-clock__hand--minute {
    stroke: var(--nidhi-teal, #176876);
    stroke-width: 1.6;
}

.nidhi-header-clock__hand--second {
    stroke: var(--nidhi-orange, #fc7303);
    stroke-width: 1.15;
}

.nidhi-header-clock__cap {
    fill: var(--nidhi-orange, #fc7303);
    stroke: var(--nidhi-bg-elevated, #fff);
    stroke-width: 0.7;
}

.nidhi-header-clock__meta {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    line-height: 1.15;
}

.nidhi-header-clock__time-row {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    min-height: 16px;
}

.nidhi-header-clock__time,
.nidhi-header-clock__time-np,
.nidhi-header-clock__ampm {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    letter-spacing: 0.02em;
}

.nidhi-header-clock__time {
    color: var(--nidhi-teal-darker, #0f4a54);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
}

.nidhi-header-clock__ampm {
    color: var(--nidhi-teal, #176876);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.nidhi-header-clock__time-np {
    color: var(--nidhi-text-muted, #64748b);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
}

.nidhi-header-clock__en,
.nidhi-header-clock__np {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nidhi-header-clock__en {
    color: var(--nidhi-text, #1a202c);
    font-size: 0.68rem;
    font-weight: 600;
}

.nidhi-header-clock__np {
    color: var(--nidhi-teal-text, #0f3d45);
    font-size: 0.72rem;
    font-weight: 600;
}

@media (max-width: 1199.98px) {
    .nidhi-header-clock__time-np {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .nidhi-header-clock__face {
        display: none;
    }

    .nidhi-header-clock {
        height: 42px;
        padding: 4px 10px;
        border-radius: 12px;
    }
}

@media (max-width: 767.98px) {
    .nidhi-header-clock {
        height: 40px;
        margin-right: 0.3rem;
        padding: 3px 8px;
    }

    .nidhi-header-clock__en {
        display: none;
    }

    .nidhi-header-clock__time {
        font-size: 0.86rem;
    }

    .nidhi-header-clock__np {
        font-size: 0.62rem;
    }
}

@media (max-width: 479.98px) {
    .nidhi-header-clock__np,
    .nidhi-header-clock__ampm {
        display: none;
    }

    .nidhi-header-clock {
        height: 32px;
        padding: 0 0.45rem;
        border-radius: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nidhi-header-clock__hand {
        transition: none;
    }
}

/* —— Report filter bar + Export dropdown —— */
.nidhi-report-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.65rem 0.85rem;
    padding: 0.75rem 0.9rem;
    margin: 0 0 0.65rem;
    border: 1px solid var(--nidhi-teal-border, #9ecfd6);
    border-radius: 10px;
    background: var(--nidhi-bg-card, #fff);
    box-shadow: 0 1px 2px rgba(23, 104, 118, 0.06);
}

.nidhi-report-filter-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nidhi-report-filter-group > label {
    margin-bottom: 0.2rem;
    color: var(--nidhi-teal-text, #0f3d45);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: nowrap;
}

.nidhi-report-filter-group .form-control {
    min-width: 132px;
    min-height: 40px;
    height: 40px;
}

.nidhi-report-filter-group .btn {
    min-height: 40px;
    min-width: 40px;
}

.nidhi-report-filter-group--wide {
    flex: 1 1 220px;
    min-width: 200px;
}

.nidhi-report-filter-group--wide .form-control,
.nidhi-report-filter-group--wide .ms-parent {
    min-width: 200px;
    width: 100% !important;
}

.nidhi-report-filter-group .ms-choice {
    min-height: 40px;
    height: 40px;
    line-height: 38px;
}

.nidhi-report-filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
}

.nidhi-report-filter-actions .btn {
    min-height: 40px;
    min-width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.nidhi-report-filter-actions .btn:active {
    transform: scale(0.96);
}

.nidhi-export-dropdown {
    position: relative;
    z-index: 20;
}

.nidhi-export-dropdown .nidhi-export-dropdown__toggle {
    min-height: 40px;
    min-width: 40px;
}

.nidhi-export-dropdown .dropdown-menu {
    min-width: 10.5rem;
    padding: 0.35rem 0;
    border: 1px solid var(--nidhi-border, #e2e8f0);
    border-radius: 8px;
    background: var(--nidhi-bg-elevated, #fff);
    box-shadow: var(--nidhi-shadow, 0 4px 16px rgba(15, 61, 69, 0.12));
}

.nidhi-export-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0.4rem 0.9rem;
    color: var(--nidhi-text, #1a202c);
    font-size: 0.9rem;
    background: transparent;
    border: 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nidhi-export-dropdown .dropdown-item i {
    width: 1.1em;
    text-align: center;
    color: var(--nidhi-teal, #176876);
}

.nidhi-export-dropdown .dropdown-item:hover,
.nidhi-export-dropdown .dropdown-item:focus {
    background: var(--nidhi-teal-light, #e6f4f6);
    color: var(--nidhi-teal-text, #0f3d45);
    outline: none;
}

.nidhi-report-section-toggles {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1rem;
    padding: 0.45rem 0.9rem 0.7rem;
    margin: -0.35rem 0 0.65rem;
    border: 1px solid var(--nidhi-teal-border, #9ecfd6);
    border-top: 0;
    border-radius: 0 0 10px 10px;
    background: var(--nidhi-bg-muted, #f1f5f9);
}

.nidhi-report-filter-bar + .nidhi-report-section-toggles {
    margin-top: -0.65rem;
}

.nidhi-report-section-toggles__label {
    color: var(--nidhi-teal-text, #0f3d45);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-right: 0.25rem;
}

.nidhi-report-section-toggles .custom-control {
    min-height: 40px;
    padding-left: 1.6rem;
    margin-right: 0;
    display: flex;
    align-items: center;
}

.nidhi-report-section-toggles .custom-control-label {
    font-size: 0.86rem;
    color: var(--nidhi-text, #1a202c);
    padding-top: 0;
}

@media (max-width: 767.98px) {
    .nidhi-report-filter-actions {
        margin-left: 0;
        width: 100%;
    }
}

