/* Source module for modern responsive DataTables and print styles. Served bundle: public/admin/css/admin.css */
.dataTables_wrapper { position: relative; width: 100%; color: #475569; }
.dark .dataTables_wrapper { color: #94a3b8; }
.dataTables_wrapper > div:first-child,
.dataTables_wrapper > div:last-child { padding: 1rem 1.25rem; gap: .75rem; }
.dataTables_wrapper > div:first-child { border-bottom: 1px solid #f1f5f9; }
.dataTables_wrapper > div:last-child { border-top: 1px solid #f1f5f9; }
.dark .dataTables_wrapper > div:first-child,
.dark .dataTables_wrapper > div:last-child { border-color: #1e293b; }
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label { display: flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 600; color: #64748b; }
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input { min-height: 2.25rem; border: 1px solid #e2e8f0; border-radius: .65rem; background: #fff; padding: .4rem .7rem; font-size: .78rem; color: #0f172a; outline: none; }
.dataTables_wrapper .dataTables_length select { padding-right: 1.75rem; }
.dataTables_wrapper .dataTables_filter input { width: 14rem; }
.dark .dataTables_wrapper .dataTables_length select,
.dark .dataTables_wrapper .dataTables_filter input { border-color: #334155; background: #0f172a; color: #f8fafc; }
.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus { border-color: var(--primary-color, #2ca58d); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color, #2ca58d) 12%, transparent); }
.dataTables_wrapper .dataTables_filter .admin-search-control { position: relative; flex-direction: column; align-items: flex-start; gap: .5rem; font-size: .875rem; color: #344054; }
.dataTables_wrapper .dataTables_filter .admin-search-control input { width: 16rem; min-height: 38px; border: 1px solid #ced4da; border-radius: 6px; background: #fff; padding: 0 10px !important; font-size: 14px; font-weight: 400; }
.dataTables_wrapper table.dataTable { width: 100% !important; margin: 0 !important; border-collapse: separate !important; border-spacing: 0 !important; }
.dataTables_wrapper table.dataTable thead th { position: relative; border: 0; border-bottom: 1px solid #e2e8f0; background: #f8fafc; padding: .8rem 1rem; color: #64748b; font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.dark .dataTables_wrapper table.dataTable thead th { border-color: #334155; background: #111c2e; color: #94a3b8; }
.dataTables_wrapper table.dataTable tbody td { border: 0; border-bottom: 1px solid #f1f5f9; padding: .9rem 1rem; color: #334155; font-size: .8rem; vertical-align: middle; }
.dark .dataTables_wrapper table.dataTable tbody td { border-color: #1e293b; color: #cbd5e1; }
.dataTables_wrapper table.dataTable tbody tr:last-child td { border-bottom: 0; }
.dataTables_wrapper table.dataTable tbody tr { background: transparent; }
.dataTables_wrapper table.dataTable tbody tr:hover { background: #f8fafc; }
.dark .dataTables_wrapper table.dataTable tbody tr:hover { background: rgba(30,41,59,.5); }
.dataTables_wrapper table.dataTable thead th.sorting::after,
.dataTables_wrapper table.dataTable thead th.sorting_asc::after,
.dataTables_wrapper table.dataTable thead th.sorting_desc::after {
    position: absolute;
    right: .55rem;
    font-family: "bootstrap-icons" !important;
    font-size: .62rem;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    opacity: .35;
}
.dataTables_wrapper table.dataTable thead th.sorting::after { content: "\F285"; }
.dataTables_wrapper table.dataTable thead th.sorting_asc::after { content: "\F286"; color: var(--primary-color, #2ca58d) !important; opacity: 1; }
.dataTables_wrapper table.dataTable thead th.sorting_desc::after { content: "\F282"; color: var(--primary-color, #2ca58d) !important; opacity: 1; }
.dataTables_wrapper .dataTables_info { padding: 0 !important; font-size: .75rem; color: #64748b; }
.dataTables_wrapper .dataTables_paginate { display: flex; align-items: center; gap: .25rem; padding: 0 !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button { display: inline-grid; min-width: 2rem; height: 2rem; margin: 0 !important; place-items: center; border: 1px solid transparent !important; border-radius: .6rem !important; background: transparent !important; padding: 0 .5rem !important; color: #64748b !important; font-size: .75rem; font-weight: 600; }
.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.disabled):not(.current) { border-color: #e2e8f0 !important; background: #fff !important; color: #0f172a !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current { border-color: var(--primary-color, #2ca58d) !important; background: var(--primary-color, #2ca58d) !important; color: #fff !important; }
.dark .dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.disabled):not(.current) { border-color: #334155 !important; background: #1e293b !important; color: #fff !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled { opacity: .35; }
.dataTables_wrapper .dataTables_processing { position: absolute; inset: 50% auto auto 50%; z-index: 20; margin: 0; transform: translate(-50%,-50%); border: 1px solid #d1fae5; border-radius: .8rem; background: rgba(255,255,255,.96); box-shadow: 0 15px 40px rgba(15,23,42,.12); padding: .8rem 1rem; color: #047857; font-size: .78rem; font-weight: 700; }
.dark .dataTables_wrapper .dataTables_processing { border-color: #065f46; background: rgba(15,23,42,.96); color: #6ee7b7; }
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control {
    position: relative;
    padding-left: 2.5rem !important;
    cursor: pointer;
}
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before {
    content: "\F4A1" !important;
    font-family: "bootstrap-icons" !important;
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: var(--primary-color, #2ca58d);
    font-size: 1.05rem;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    transition: transform 0.25s ease, color 0.15s ease;
}
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control::before {
    content: "\F2CE" !important;
    color: #dc2626;
    transform: translateY(-50%) rotate(180deg);
}
table.dataTable.dtr-inline.collapsed > thead > tr > th.dtr-control {
    padding-left: 2.5rem !important;
}
table.dataTable > tbody > tr.child ul.dtr-details { width: 100%; }
table.dataTable > tbody > tr.child span.dtr-title { color: #64748b; font-size: .68rem; text-transform: uppercase; }
table.dataTable > tbody > tr.child li { display: grid; grid-template-columns: minmax(7rem, 35%) minmax(0, 1fr); gap: .75rem; align-items: start; padding: .65rem 0; }
table.dataTable > tbody > tr.child span.dtr-data { min-width: 0; overflow-wrap: anywhere; }

/* Page Print styles */
@media print {
    header, aside, #sidebar-overlay, #filterPanel, form, .dt-buttons, .dataTables_filter, .dataTables_length, .dataTables_paginate, .dataTables_info, .admin-sidebar, .admin-header {
        display: none !important;
    }
    main, .admin-main {
        margin-left: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
}

/* Animations */
.tab-content, .fade-in-content {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
    .dataTables_wrapper > div:first-child, .dataTables_wrapper > div:last-child { align-items: stretch !important; flex-direction: column !important; }
    .dataTables_wrapper > div:first-child > div { width: 100%; }
    .dataTables_wrapper > div:first-child > div:first-child { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: .65rem !important; }
    .dataTables_wrapper .dataTables_length label { justify-content: space-between; width: 100%; }
    .dataTables_wrapper .dataTables_length select { min-width: 6rem; }
    .dataTables_wrapper .dt-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); width: 100%; }
    .dataTables_wrapper .dt-buttons .dt-button { justify-content: center; width: 100%; }
    .dataTables_wrapper .dataTables_filter { width: 100%; }
    .dataTables_wrapper .dataTables_filter label, .dataTables_wrapper .dataTables_filter input { width: 100%; }
    .dataTables_wrapper .dataTables_info { text-align: center; }
    .dataTables_wrapper .dataTables_paginate { justify-content: center; }
}
@media (max-width: 1023px) {
    table.dataTable > tbody > tr.child ul.dtr-details { display: block; }
    table.dataTable > tbody > tr.child li .relative { position: static; }
    table.dataTable > tbody > tr.child li [onclick*="toggleDropdown"] { display: none !important; }
    table.dataTable > tbody > tr.child li [id^="dropdown-"] { position: static !important; display: block !important; width: 100% !important; margin: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; }
    table.dataTable > tbody > tr.child li [id^="dropdown-"] > div { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding: 0 !important; }
    table.dataTable > tbody > tr.child li [id^="dropdown-"] a,
    table.dataTable > tbody > tr.child li [id^="dropdown-"] button { width: auto !important; min-height: 2rem; border-radius: .5rem; padding: .4rem .6rem !important; white-space: nowrap; }
    table.dataTable > tbody > tr.child li [id^="dropdown-"] form { display: inline-flex !important; margin: 0; }
    table.dataTable > tbody > tr.child li [id^="dropdown-"] i { margin-right: .35rem !important; width: auto !important; }
}
