/* NirmaanSetu Admin Dashboard — Styles */
/* Using vanilla CSS with utility classes matching existing Tailwind patterns */

:root {
    --primary: #f97316;
    --primary-hover: #ea580c;
    --primary-light: #fff7ed;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Remove default browser button borders and outlines */
button,
input,
select,
textarea,
[type="button"],
[type="reset"],
[type="submit"] {
    border: none;
    outline: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.5;
}

/* ── Layout Utilities ── */
.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.flex-1 {
    flex: 1;
}

.flex-col {
    flex-direction: column;
}

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

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.space-x-2>*+* {
    margin-left: 0.5rem;
}

.space-x-3>*+* {
    margin-left: 0.75rem;
}

.space-x-4>*+* {
    margin-left: 1rem;
}

.space-y-1>*+* {
    margin-top: 0.25rem;
}

.space-y-3>*+* {
    margin-top: 0.75rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

/* Grid */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .md\:flex {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .lg\:grid-cols-12 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .lg\:col-span-2 {
        grid-column: span 2 / span 2;
    }

    .lg\:col-span-5 {
        grid-column: span 5 / span 5;
    }

    .lg\:col-span-7 {
        grid-column: span 7 / span 7;
    }

    .lg\:flex-row {
        flex-direction: row;
    }

    .lg\:items-center {
        align-items: center;
    }
}

/* ── Sizing ── */
.w-full {
    width: 100%;
}

.w-8 {
    width: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.w-16 {
    width: 4rem;
}

.w-64 {
    width: 16rem;
}

.h-8 {
    height: 2rem;
}

.h-10 {
    height: 2.5rem;
}

.h-12 {
    height: 3rem;
}

.h-16 {
    height: 4rem;
}

.h-64 {
    height: 16rem;
}

.h-full {
    height: 100%;
}

.min-h-screen {
    min-height: 100vh;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-h-96 {
    max-height: 24rem;
}

.max-h-\[80vh\] {
    max-height: 80vh;
}

.ml-64 {
    margin-left: 16rem;
}

/* ── Spacing ── */
.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mx-4 {
    margin-left: 1rem;
    margin-right: 1rem;
}

.mx-8 {
    margin-left: 2rem;
    margin-right: 2rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.pl-3 {
    padding-left: 0.75rem;
}

.pl-4 {
    padding-left: 1rem;
}

.pl-10 {
    padding-left: 2.5rem;
}

.pr-3 {
    padding-right: 0.75rem;
}

.pt-4 {
    padding-top: 1rem;
}

.py-0\.5 {
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
}

/* ── Typography ── */
.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.uppercase {
    text-transform: uppercase;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.leading-5 {
    line-height: 1.25rem;
}

.font-mono {
    font-family: ui-monospace, SFMono-Regular, monospace;
}

/* ── Colors ── */
.text-white {
    color: #fff;
}

.text-gray-400 {
    color: var(--gray-400);
}

.text-gray-500 {
    color: var(--gray-500);
}

.text-gray-600 {
    color: var(--gray-600);
}

.text-gray-700 {
    color: var(--gray-700);
}

.text-gray-900 {
    color: var(--gray-900);
}

.text-orange-500 {
    color: #f97316;
}

.text-red-600 {
    color: #dc2626;
}

.text-red-800 {
    color: #991b1b;
}

.text-red-900 {
    color: #7f1d1d;
}

.text-green-600 {
    color: #16a34a;
}

.text-green-800 {
    color: #166534;
}

.text-blue-500 {
    color: #3b82f6;
}

.text-blue-700 {
    color: #1d4ed8;
}

.text-blue-800 {
    color: #1e40af;
}

.text-yellow-600 {
    color: #ca8a04;
}

.text-yellow-800 {
    color: #854d0e;
}

.text-purple-600 {
    color: #9333ea;
}

.bg-white {
    background-color: #fff;
}

.bg-gray-50 {
    background-color: var(--gray-50);
}

.bg-gray-100 {
    background-color: var(--gray-100);
}

.bg-orange-50 {
    background-color: #fff7ed;
}

.bg-orange-500 {
    background-color: #f97316;
}

.bg-red-50 {
    background-color: #fef2f2;
}

.bg-red-100 {
    background-color: #fee2e2;
}

.bg-red-500 {
    background-color: #ef4444;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-green-500 {
    background-color: #22c55e;
}

.bg-blue-50 {
    background-color: #eff6ff;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.bg-blue-500 {
    background-color: #3b82f6;
}

.bg-yellow-100 {
    background-color: #fef9c3;
}

.bg-yellow-500 {
    background-color: #eab308;
}

.bg-purple-100 {
    background-color: #f3e8ff;
}

.bg-purple-500 {
    background-color: #a855f7;
}

.bg-purple-600 {
    background-color: #9333ea;
}

.hover\:bg-purple-600:hover {
    background-color: #9333ea;
}

.bg-gray-700 {
    background-color: #374151;
}

.bg-gray-800 {
    background-color: #1f2937;
}

.hover\:bg-gray-800:hover {
    background-color: #1f2937;
}

.bg-amber-500 {
    background-color: #f59e0b;
}

.bg-amber-600 {
    background-color: #d97706;
}

.hover\:bg-amber-600:hover {
    background-color: #d97706;
}

.bg-gradient-to-br {
    background: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to));
}

.from-gray-900 {
    --tw-gradient-from: #111827;
}

.to-gray-800 {
    --tw-gradient-to: #1f2937;
}

body .bg-gradient-to-br.from-gray-900.to-gray-800 {
    background: linear-gradient(to bottom right, #111827, #1f2937);
}

.bg-black {
    background-color: #000;
}

.bg-opacity-50 {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.5);
}

/* ── Borders ── */
.border {
    border: 1px solid var(--gray-200);
}

.border-b {
    border-bottom: 1px solid var(--gray-200);
}

.border-t {
    border-top: 1px solid var(--gray-200);
}

.border-gray-200 {
    border-color: var(--gray-200);
}

.border-gray-300 {
    border-color: var(--gray-200);
}

.border-orange-500 {
    border-color: #f97316;
}

.border-red-300 {
    border-color: #fca5a5;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* ── Effects ── */
.shadow-sm {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.shadow-lg {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.shadow-2xl {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.transition-colors {
    transition: color 150ms, background-color 150ms, border-color 150ms;
}

.transition-all {
    transition: all 150ms;
}

.transition-opacity {
    transition: opacity 300ms;
}

/* ── Positioning ── */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
    top: 0;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.inset-y-0 {
    top: 0;
    bottom: 0;
}

.top-0 {
    top: 0;
}

.top-1 {
    top: 0.25rem;
}

.top-4 {
    top: 1rem;
}

.right-0 {
    right: 0;
}

.right-1 {
    right: 0.25rem;
}

.right-4 {
    right: 1rem;
}

.left-0 {
    left: 0;
}

.z-20 {
    z-index: 20;
}

.z-30 {
    z-index: 30;
}

.z-50 {
    z-index: 50;
}

.z-\[100\] {
    z-index: 100;
}

.z-\[200\] {
    z-index: 200;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-x-auto {
    overflow-x: auto;
}

.overflow-y-auto {
    overflow-y: auto;
}

/* ── Tables ── */
table {
    border-collapse: collapse;
}

th,
td {
    text-align: left;
}

.divide-y>*+* {
    border-top: 1px solid var(--gray-200);
}

.divide-x>*+* {
    border-left: 1px solid var(--gray-200);
}

/* ── Forms ── */
input,
select,
textarea,
button {
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.4);
    border-color: transparent;
}

select {
    appearance: auto;
    background-color: #fff;
}

input[type="checkbox"] {
    border-radius: 0.25rem;
}

/* ── Hover States ── */
.hover\:bg-orange-600:hover {
    background-color: #ea580c;
}

.hover\:bg-gray-50:hover {
    background-color: var(--gray-50);
}

.hover\:bg-gray-100:hover {
    background-color: var(--gray-100);
}

.hover\:bg-gray-700:hover {
    background-color: var(--gray-700);
}

.hover\:bg-gray-800:hover {
    background-color: var(--gray-800);
}

.hover\:bg-orange-100:hover {
    background-color: #ffedd5;
}

.hover\:bg-green-600:hover {
    background-color: #16a34a;
}

.hover\:text-gray-700:hover {
    color: var(--gray-700);
}

.hover\:text-gray-900:hover {
    color: var(--gray-900);
}

.hover\:text-red-900:hover {
    color: #7f1d1d;
}

.cursor-pointer {
    cursor: pointer;
}

/* ── Animations ── */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ── Flex shrink ── */
.flex-shrink-0 {
    flex-shrink: 0;
}

.self-start {
    align-self: flex-start;
}

/* ── Sidebar Component ── */
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 150ms, color 150ms;
    text-decoration: none;
    color: var(--gray-700);
}

.sidebar-item:hover {
    background-color: var(--gray-100);
}

.sidebar-item.active {
    background-color: #f97316;
    color: #fff;
}

.sidebar-item.active span:first-child {
    filter: none;
}

.sidebar-item span:first-child {
    filter: grayscale(1);
}

.sidebar-item.active span:first-child {
    filter: none;
}

/* ── Status Badges ── */
.status-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.status-pending {
    background-color: #fef9c3;
    color: #854d0e;
}

.status-approved,
.status-completed,
.status-active,
.status-success,
.status-paid {
    background-color: #dcfce7;
    color: #166534;
}

.status-rejected,
.status-cancelled,
.status-failed {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-refunded {
    background-color: #f3e8ff;
    color: #6b21a8;
}

.status-confirmed,
.status-in_progress {
    background-color: #dbeafe;
    color: #1e40af;
}

/* ── Card Components ── */
.stat-card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 1rem;
}

.stat-card .icon-wrap {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

/* ── Tab Component ── */
.tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    transition: color 150ms, border-color 150ms;
}

.tab-btn:hover {
    color: var(--gray-700);
}

.tab-btn.active {
    color: #f97316;
    border-bottom-color: #f97316;
}

/* ── Notification Toast ── */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.875rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: opacity 300ms;
}

.toast-success {
    background-color: #22c55e;
}

.toast-error {
    background-color: #ef4444;
}

.toast-info {
    background-color: #3b82f6;
}

.toast-warning {
    background-color: #eab308;
}

/* ── Border-b-2 for tabs ── */
.border-b-2 {
    border-bottom: 2px solid;
}

/* ── Table row hover ── */
.hover\:bg-gray-50:hover,
tr.hover\:bg-gray-50:hover {
    background-color: var(--gray-50);
}

/* ── Responsive hiding ── */
@media (max-width: 767px) {
    .md\:flex {
        display: none;
    }

    .ml-64 {
        margin-left: 0;
    }

    #sidebar {
        transform: translateX(-100%);
        transition: transform 300ms;
    }

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

/* ── Additional utility ── */
.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.list-disc {
    list-style-type: disc;
}

.min-h-\[200px\] {
    min-height: 200px;
}

.flex-col.h-full {
    height: 100%;
}

/* ── Missing grid utility ── */
@media (min-width: 768px) {
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── Approvals Card Grid ── */
.approvals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.approval-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 20px;
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 200ms ease, transform 200ms ease;
}

.approval-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

/* Card Header — title left, badge right */
.approval-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.approval-card .card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.3;
    margin: 0;
}

.approval-card .card-subtitle {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 2px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

/* Card Body — key-value info rows */
.approval-card .card-body {
    flex: 1;
    margin-bottom: 14px;
}

.approval-card .card-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #f3f4f6;
}

.approval-card .card-info-row:last-child {
    border-bottom: none;
}

.approval-card .card-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.approval-card .card-value {
    font-size: 0.8125rem;
    color: var(--gray-700);
    text-align: right;
}

/* Card Actions — equal width buttons */
.card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}

.card-actions .btn-approve,
.card-actions .btn-reject {
    flex: 1;
    padding: 9px 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 150ms, color 150ms, box-shadow 150ms;
    text-align: center;
    border: none;
}

.card-actions .btn-approve {
    background-color: #22c55e;
    color: #fff;
}

.card-actions .btn-approve:hover {
    background-color: #16a34a;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.35);
}

.card-actions .btn-reject {
    background-color: transparent;
    color: #ef4444;
    border: 1.5px solid #ef4444;
}

.card-actions .btn-reject:hover {
    background-color: #fef2f2;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.18);
}

/* Empty state */
.approvals-empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

/* Approval Card Images */
.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    margin-bottom: 12px;
    cursor: pointer;
}

.card-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 200ms ease;
}

.card-image-wrapper:hover .card-product-img {
    transform: scale(1.04);
}

.card-image-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    pointer-events: none;
    backdrop-filter: blur(2px);
}

.card-image-count {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(249, 115, 22, 0.9);
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    pointer-events: none;
}

.card-thumbnails {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.thumb-img {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: border-color 150ms, transform 150ms;
}

.thumb-img:hover {
    transform: scale(1.05);
}

.thumb-img.active {
    border-color: #f97316;
}

.card-no-image {
    width: 100%;
    height: 100px;
    border-radius: 0.5rem;
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
}

/* ── Admin Notification Dropdown (Matching Reference Screenshot) ── */
#adminNotifDropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    width: 420px;
    max-width: 92vw;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18);
    border: 1px solid #e2e8f0;
    z-index: 1000;
    overflow: visible !important;
    box-sizing: border-box !important;
    animation: adminDropdownPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#adminNotifDropdown:not(.hidden) {
    display: block !important;
}

/* Arrow notch pointing to bell icon */
#adminNotifDropdown::before {
    content: '';
    position: absolute;
    top: -9px;
    right: 22px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid #ffffff;
    filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.06));
    z-index: 1001;
}

@keyframes adminDropdownPopIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

#adminNotifList {
    max-height: 400px;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

#adminNotifList::-webkit-scrollbar {
    width: 5px;
}

#adminNotifList::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.admin-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    background: #ffffff;
    transition: background 0.15s ease;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.admin-notif-item:last-child {
    border-bottom: none;
}

.admin-notif-item:hover {
    background-color: #f8fafc !important;
}

.admin-notif-item.unread {
    background-color: #f8fcf3 !important;
}

.admin-notif-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    background: #f1f5f9;
    color: #334155;
    overflow: hidden;
}

.admin-notif-content {
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
}

.admin-notif-text {
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    overflow-wrap: break-word;
}

.admin-notif-text strong {
    color: #0f172a;
    font-weight: 600;
}

.admin-notif-time {
    font-size: 0.68rem;
    color: #94a3b8;
    margin-top: 3px;
    display: block;
    font-weight: 500;
}

/* ── Notification Dropdown Styles (Synced with Vendor Portal) ── */
.notif-dropdown {
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1) !important;
}

.notif-header {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.notif-unread-tag {
    font-size: 11px;
    background: #e0e7ff;
    color: #4f46e5;
    padding: 2px 8px;
    border-radius: 9999px;
    font-weight: 500;
}

.notif-tabs {
    padding: 8px 16px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    gap: 8px;
    background: white;
}

.notif-tab {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.15s ease;
}

.notif-tab.active {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

.notif-tab:not(.active) {
    background: transparent !important;
    color: #64748b !important;
}

.notif-list {
    max-height: 320px;
    overflow-y: auto;
}

.notif-list::-webkit-scrollbar {
    width: 6px;
}

.notif-list::-webkit-scrollbar-track {
    background: transparent;
}

.notif-list::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    background: #ffffff;
    transition: background 0.15s ease;
    overflow-x: hidden;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item:hover {
    background: #f8fafc;
}

.notif-item.unread {
    background: #f8fcf3 !important; /* Subtle light cream green tint matching screenshot */
}

.notif-avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    background: #e9ecef;
    color: #495057;
    overflow: hidden;
}

.notif-avatar-circle.approved { background: #dcfce7; color: #166534; }
.notif-avatar-circle.rejected { background: #fee2e2; color: #991b1b; }
.notif-avatar-circle.submitted { background: #e0e7ff; color: #3730a3; }
.notif-avatar-circle.order { background: #ffedd5; color: #c2410c; }
.notif-avatar-circle.booking { background: #ccfbf1; color: #0f766e; }
.notif-avatar-circle.security { background: #e0f2fe; color: #0369a1; }

.notif-content {
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
}

.notif-text-message {
    font-size: 0.8rem;
    color: #495057;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    overflow-wrap: break-word;
}

.notif-text-message strong {
    color: #212529;
    font-weight: 600;
}

.notif-time-sub {
    font-size: 0.68rem;
    color: #94a3b8;
    margin-top: 3px;
    display: block;
}

.notif-empty {
    padding: 30px 20px;
    text-align: center;
}

.notif-empty-icon {
    font-size: 2rem;
    margin-bottom: 6px;
    opacity: 0.5;
}

.notif-empty-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.notif-empty-subtitle {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}

.notif-footer {
    padding: 10px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* ── Scoped Broadcast Module Styles ── */
.broadcast-page-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .broadcast-page-grid {
        grid-template-columns: 5fr 7fr;
    }
}

.broadcast-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.broadcast-field-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
}

.broadcast-input,
.broadcast-select,
.broadcast-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #111827;
    background-color: #ffffff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.broadcast-input:focus,
.broadcast-select:focus,
.broadcast-textarea:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.broadcast-char-counter {
    font-size: 0.75rem;
    font-weight: 500;
    color: #9ca3af;
    text-align: right;
    margin-top: 0.25rem;
}

/* ── Elevated Audience Radio Cards ── */
.broadcast-chips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.broadcast-audience-chip {
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.875rem 0.75rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    width: 100%;
    position: relative;
}

.broadcast-audience-chip:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.broadcast-audience-chip.active {
    border-color: #f97316;
    background-color: #fffaf5;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.12);
}

.broadcast-chip-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.broadcast-chip-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.broadcast-chip-avatar.customer {
    background: #eff6ff;
    color: #1d4ed8;
}

.broadcast-chip-avatar.vendor {
    background: #faf5ff;
    color: #7e22ce;
}

.broadcast-chip-avatar.all {
    background: #fffbeb;
    color: #b45309;
}

.broadcast-chip-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.broadcast-audience-chip.active .broadcast-chip-check {
    border-color: #f97316;
    background-color: #f97316;
}

.broadcast-audience-chip.active .broadcast-chip-check::after {
    content: '✓';
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

.broadcast-chip-body {
    display: flex;
    flex-direction: column;
}

.broadcast-chip-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.broadcast-audience-chip.active .broadcast-chip-title {
    color: #ea580c;
}

.broadcast-chip-desc {
    font-size: 0.6875rem;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.2;
}

.broadcast-audience-chip.active .broadcast-chip-desc {
    color: #9a3412;
}

/* ── Quick Presets ── */
.broadcast-preset-tag {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.15s ease;
}

.broadcast-preset-tag:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* ── Preview Box ── */
.broadcast-preview-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
}

/* ── Action Buttons ── */
.broadcast-btn-primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 5px rgba(234, 88, 12, 0.25);
}

.broadcast-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.35);
    transform: translateY(-1px);
}

.broadcast-btn-primary:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.broadcast-btn-secondary {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    color: #374151;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.broadcast-btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
}

.broadcast-btn-ghost {
    background: transparent;
    border: 1px solid transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
}

.broadcast-btn-ghost:hover {
    background-color: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

/* ── History Filter & Search Toolbar ── */
.broadcast-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.broadcast-tabs {
    display: inline-flex;
    background: #f1f5f9;
    border-radius: 0.5rem;
    padding: 0.25rem;
    gap: 0.25rem;
}

.broadcast-tab-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    border-radius: 0.375rem;
    transition: all 0.15s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
}

.broadcast-tab-btn:hover {
    color: #1e293b;
}

.broadcast-tab-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.broadcast-tab-badge {
    margin-left: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
}

.broadcast-tab-btn.active .broadcast-tab-badge {
    background: #ffedd5;
    color: #c2410c;
}

.broadcast-search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
}

.broadcast-search-input {
    width: 100%;
    padding: 0.4375rem 2rem 0.4375rem 2.125rem;
    font-size: 0.8125rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #111827;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.broadcast-search-input:focus {
    border-color: #f97316;
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.broadcast-search-icon {
    position: absolute;
    left: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8125rem;
    color: #9ca3af;
    pointer-events: none;
}

.broadcast-search-clear {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    border: none;
    background: none;
}

.broadcast-search-clear:hover {
    color: #4b5563;
}

/* ── Table Avatars (Matching Vendor Portal UI) ── */
.broadcast-row-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.broadcast-row-avatar.customer {
    background: #eff6ff;
    color: #1d4ed8;
}

.broadcast-row-avatar.vendor {
    background: #faf5ff;
    color: #7e22ce;
}

.broadcast-row-avatar.all {
    background: #fffbeb;
    color: #b45309;
}

/* ── Soft-Pill Badges ── */
.broadcast-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.broadcast-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    display: inline-block;
    flex-shrink: 0;
}

.broadcast-pill-customer {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}
.broadcast-pill-customer .broadcast-pill-dot {
    background-color: #2563eb;
}

.broadcast-pill-vendor {
    background-color: #faf5ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}
.broadcast-pill-vendor .broadcast-pill-dot {
    background-color: #9333ea;
}

.broadcast-pill-all {
    background-color: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}
.broadcast-pill-all .broadcast-pill-dot {
    background-color: #d97706;
}

.broadcast-pill-sent {
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.broadcast-pill-sent .broadcast-pill-dot {
    background-color: #10b981;
}

/* Backwards compatibility */
.broadcast-badge-customer {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.broadcast-badge-vendor {
    background-color: #faf5ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

.broadcast-badge-all {
    background-color: #fffbe6;
    color: #b45309;
    border: 1px solid #fef08a;
}

/* ── Pagination ── */
.broadcast-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.875rem;
    margin-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.75rem;
    color: #64748b;
}

.broadcast-page-btn {
    padding: 0.3125rem 0.625rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    background: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.broadcast-page-btn:hover:not(:disabled) {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.broadcast-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.broadcast-page-btn.active {
    background-color: #f97316;
    color: #ffffff;
    border-color: #f97316;
}
