:root {
    --color-bg: #f8f9fe;
    --color-bg-light: #f1f3f8;
    --color-surface: #ffffff;
    --color-border: #eef0f2;
    --color-text-primary: #1e2022;
    --color-text-secondary: #6c757d;
    --color-text-tertiary: #9ca3af;
    --color-accent: #0180b6;
    --color-accent-dark: #016a98;
    --color-accent-gradient: linear-gradient(45deg, #0180b6, #02a1e6);
    --color-accent-glow: rgba(1, 128, 182, 0.15);
    --color-accent-light: #e6f7ff;
    --color-green: #16a34a;
    --color-orange: #f97316;
    --color-red: #dc2626;
    --color-blue: #2563eb;
    --color-purple: #9333ea;
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(1, 128, 182, 0.1);
    --font-family: 'DM Sans', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOutDown {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(15px); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.btn.loading .spinner { display: inline-block; }
.btn.loading .btn-text,
.btn.loading .lucide { display: none; }
.fade-out {
    animation: fadeOutDown 0.3s cubic-bezier(0.5, 0, 0.75, 0) forwards;
}
body {
    font-family: var(--font-family); background-color: var(--color-bg);
    color: var(--color-text-primary); height: 100vh; overflow: hidden;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.top-nav {
    width: 100%;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: 100px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}
.logo img {
    height: 90px;
    width: auto;
}
.process-nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}
.process-nav button {
    background: none;
    border: none;
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    transition: all 0.25s ease;
    position: relative;
}
.process-nav button:hover {
    color: var(--color-accent);
    background-color: var(--color-accent-light);
}
.process-nav button.active {
    font-weight: 700;
    color: var(--color-accent);
    background-color: var(--color-accent-light);
}
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-actions .icon-btn {
    color: var(--color-text-secondary); background: none; border: none;
    cursor: pointer; transition: all 0.25s ease;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.nav-actions .icon-btn:hover {
    color: var(--color-accent); background-color: var(--color-accent-light);
}
.nav-actions .icon-btn .lucide {
     width: 22px; height: 22px;
}
.notification-dot {
    position: absolute; top: 10px; right: 10px; width: 9px; height: 9px;
    background-color: var(--color-red); border-radius: 50%;
    border: 2px solid var(--color-surface);
}
.btn-nav-action {
    background-color: transparent; border: 1px solid var(--color-border);
    color: var(--color-text-primary); padding: 0 20px; 
    height: 44px;
    font-size: 15px;
    font-weight: 600; border-radius: var(--border-radius-md);
    display: inline-flex; align-items: center; gap: 8px;
    transition: all 0.25s ease; cursor: pointer;
}
.btn-nav-action:hover {
    border-color: var(--color-accent); color: var(--color-accent);
    background-color: var(--color-accent-light);
}
.btn-nav-action.active {
    background: var(--color-accent-gradient); color: #fff;
    border-color: transparent; box-shadow: var(--shadow-lg);
}
.btn-nav-action .lucide { width: 18px; height: 18px; }
.user-profile { position: relative; }
#userProfileBtn {
    border: 2px solid var(--color-accent);
    box-shadow: 0 0 0 2px var(--color-surface);
    color: var(--color-accent);
}
.profile-popover {
    position: absolute; top: calc(100% + 12px); right: 0;
    width: 180px; background-color: var(--color-surface);
    border-radius: var(--border-radius-md); z-index: 1020;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 8px;
    display: flex; flex-direction: column;
    opacity: 0; transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.profile-popover.visible {
    opacity: 1; transform: translateY(0); pointer-events: auto;
}
.popover-item {
    font-weight: 500; font-size: 15px; color: var(--color-text-primary);
    padding: 10px 12px; border-radius: var(--border-radius-sm);
    text-decoration: none; display: block;
    transition: all 0.2s ease;
}
.popover-item:hover {
    background-color: var(--color-bg-light); color: var(--color-accent);
}
.popover-item:not(:last-child) { margin-bottom: 4px; }
.main-container {
    padding: 140px 60px 40px 60px;
    height: 100%; overflow-y: auto;
    display: flex; flex-direction: column; gap: 32px;
}
.page-header {
    display: flex; justify-content: space-between; align-items: center;
    gap: 24px; animation: fadeInUp 0.5s ease-out both;
}
.header-text { display: flex; align-items: center; gap: 20px; }
.page-icon {
    flex-shrink: 0; width: 52px; height: 52px; background: var(--color-accent-light);
    border-radius: var(--border-radius-md); display: flex; align-items: center;
    justify-content: center; color: var(--color-accent);
}
.page-icon .lucide { width: 26px; height: 26px; }
.header-text h1 {
    font-size: 32px; font-weight: 700; color: var(--color-text-primary);
    margin-bottom: 2px;
}
.header-text p {
    font-size: 16px; color: var(--color-text-secondary); font-weight: 500;
}
.btn {
    padding: 0 20px; border-radius: var(--border-radius-md); border: 1px solid transparent;
    cursor: pointer; font-weight: 600; font-size: 15px; transition: all 0.25s ease;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--color-accent-gradient); color: #fff; box-shadow: var(--shadow-lg); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary { background-color: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text-primary); }
.btn-secondary:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-danger { background: var(--color-red); color: #fff; box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2); }
.btn-danger:hover { background: #b91c1c; }
.btn:disabled { background: var(--color-bg-light); color: var(--color-text-tertiary); border-color: var(--color-border); cursor: not-allowed; transform: none; box-shadow: none; }
.btn .lucide { width: 18px; height: 18px; }
.header-stats {
    display: flex; gap: 0; background-color: var(--color-surface);
    padding: 12px; border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
}
.stat-item {
    padding: 12px 28px; text-align: left; position: relative;
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.stat-item:not(:last-child) { border-right: 1px solid var(--color-border); }
.stat-value { font-size: 28px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.stat-value .lucide { color: var(--color-accent); }
.stat-value.orange .lucide { color: var(--color-orange); }
.stat-value.green .lucide { color: var(--color-green); }
.stat-value.red .lucide { color: var(--color-red); }
.stat-value.blue .lucide { color: var(--color-blue); }
.stat-label { font-size: 14px; color: var(--color-text-secondary); margin-top: 4px; }
.search-actions-group { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.filter-pills { display: flex; background-color: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--border-radius-md); padding: 5px; flex-shrink: 0; }
.filter-pills button {
    background: transparent; border: none; padding: 8px 16px; border-radius: var(--border-radius-sm);
    font-size: 15px; font-weight: 600; color: var(--color-text-secondary);
    cursor: pointer; transition: all 0.3s ease;
}
.filter-pills button.active, .filter-pills button:hover {
    background: var(--color-accent-light); color: var(--color-accent);
}
.filter-pills button.active { box-shadow: var(--shadow-sm); }
.search-filter, .date-filter { position: relative; }
.search-filter .lucide, .date-filter .lucide { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--color-text-tertiary); }
.filter-input {
    height: 44px; background-color: var(--color-surface); border: 1px solid var(--color-border);
    color: var(--color-text-primary); padding: 8px 14px 8px 44px; border-radius: var(--border-radius-md);
    font-size: 15px; font-weight: 500; transition: all 0.3s ease;
}
.search-filter .filter-input { width: 240px; }
.date-filter .filter-input { width: 180px; cursor: pointer; }
.filter-input:focus {
    outline: none; border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}
.date-popover {
    position: fixed; margin-top: 8px; z-index: 1010;
    width: 280px; background: var(--color-surface); border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); border: 1px solid var(--color-border);
    display: none; flex-direction: column;
}
.date-popover.visible { display: flex; animation: fadeInUp 0.2s ease-out; }
.popover-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 8px; background-color: var(--color-bg-light); border-bottom: 1px solid var(--color-border); border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;}
.popover-header span { font-size: 16px; font-weight: 600; }
.popover-header button { background: none; border: none; cursor: pointer; padding: 4px; border-radius: 50%; }
.popover-header button:hover { background-color: var(--color-border); }
.popover-body { padding: 12px; }
.popover-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.month-item { padding: 10px; text-align: center; font-size: 14px; font-weight: 500; border-radius: var(--border-radius-sm); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.month-item:hover { background-color: var(--color-accent-light); }
.month-item.selected { background-color: var(--color-accent); color: #fff; font-weight: 600; }
.popover-footer { padding: 8px 12px 12px; border-top: 1px solid var(--color-border); }
.btn-mes-atual { width: 100%; height: 36px; padding: 0; font-size: 14px; }
.table-card {
    background-color: var(--color-surface); border-radius: var(--border-radius-lg);
    padding: 0; border: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.7s ease-out both;
    display: flex; flex-direction: column;
}
.table-controls {
    display: flex; flex-wrap: wrap; justify-content: space-between;
    align-items: center; gap: 16px; padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
}
.table-wrapper { overflow-x: auto; padding: 16px 8px 0; }
table {
    width: 100%; min-width: 900px; text-align: left; border-collapse: separate;
    border-spacing: 0 10px; table-layout: fixed;
}
thead th {
    padding: 12px 24px; color: var(--color-text-secondary);
    font-weight: 600; font-size: 13px; text-transform: uppercase;
    letter-spacing: 0.5px; white-space: nowrap;
}
tbody tr {
    background-color: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md); transition: transform 0.2s ease, box-shadow 0.2s ease;
    opacity: 0; animation: fadeInUp 0.5s ease-out forwards;
}
tbody tr:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-lg);
    z-index: 2; position: relative; border-color: var(--color-accent-light);
}
td {
    padding: 20px 24px; font-size: 16px; vertical-align: middle; border: none;
    white-space: nowrap;
}
td:first-child { border-top-left-radius: var(--border-radius-md); border-bottom-left-radius: var(--border-radius-md); }
td:last-child { border-top-right-radius: var(--border-radius-md); border-bottom-right-radius: var(--border-radius-md); }
.cell-center { display: flex; justify-content: center; align-items: center; height: 100%; }
.company-name-cell {
    font-weight: 600; color: var(--color-text-primary); text-transform: uppercase;
    overflow: hidden; text-overflow: ellipsis;
}
.task-id-cell {
    display: flex; align-items: center; gap: 8px;
    font-weight: 600; color: var(--color-text-secondary);
}
.task-id-cell .lucide { color: var(--color-text-tertiary); flex-shrink: 0; }
.status-badge {
    padding: 5px 12px; border-radius: 999px; font-weight: 600;
    font-size: 12px; display: inline-flex; align-items: center;
    gap: 6px; text-transform: capitalize; justify-content: center;
}
.status-badge .dot { width: 8px; height: 8px; border-radius: 50%; }
.status-green { background-color: transparent; color: var(--color-green); } .status-green .dot { background-color: var(--color-green); }
.status-orange { background-color: transparent; color: var(--color-orange); } .status-orange .dot { background-color: var(--color-orange); }
.status-red { background-color: transparent; color: var(--color-red); } .status-red .dot { background-color: var(--color-red); }
.status-blue { background-color: transparent; color: var(--color-accent); } .status-blue .dot { background-color: var(--color-accent); }
input[type="checkbox"] {
    appearance: none; -webkit-appearance: none;
    width: 20px; height: 20px; border: 2px solid #ced4da;
    border-radius: 6px; background-color: var(--color-bg);
    cursor: pointer; position: relative; transition: all 0.2s ease-in-out; flex-shrink: 0;
}
input[type="checkbox"]:hover { border-color: var(--color-accent); }
input[type="checkbox"]:checked {
    background-color: var(--color-accent); border-color: var(--color-accent);
}
input[type="checkbox"]:checked::after {
    content: ''; position: absolute; top: 2px; left: 6px;
    width: 4px; height: 10px; border: solid white;
    border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.action-button {
    background: none; border: none; cursor: pointer; padding: 4px;
    color: var(--color-text-tertiary); border-radius: 50%;
    display: inline-flex; transition: color 0.2s, background-color 0.2s;
}
.action-button:hover { color: var(--color-accent); background-color: var(--color-accent-light); }
.pagination { 
    padding: 24px 24px 16px; display: flex; justify-content: space-between; align-items: center;
    color: var(--color-text-secondary); font-size: 14px;
}
.offcanvas-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(30, 32, 34, 0.5); z-index: 1040;
    opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.offcanvas-backdrop.open { opacity: 1; pointer-events: auto; }
.offcanvas {
    position: fixed; top: 0; right: -450px; width: 100%; max-width: 420px;
    height: 100%; background-color: var(--color-bg); z-index: 1050;
    display: flex; flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.offcanvas.open { right: 0; }
.offcanvas-header {
    padding: 24px; border-bottom: 1px solid var(--color-border);
    display: flex; justify-content: space-between; align-items: center;
    background-color: var(--color-surface); flex-shrink: 0;
}
.offcanvas-header h2 { font-size: 20px; font-weight: 600; color: var(--color-text-primary); margin: 0; }
.offcanvas-header button {
    background: none; border: none; font-size: 28px; line-height: 1;
    color: var(--color-text-tertiary); cursor: pointer; padding: 4px; border-radius: 50%;
    width: 36px; height: 36px;
}
.offcanvas-header button:hover {
    color: var(--color-accent); background-color: var(--color-accent-light);
}
.offcanvas-body { padding: 24px; overflow-y: auto; flex-grow: 1; }
.offcanvas-footer {
    padding: 20px 24px; border-top: 1px solid var(--color-border);
    background-color: var(--color-surface); flex-shrink: 0;
    display: flex; justify-content: flex-end; gap: 12px;
}
.import-drop-zone {
    border: 3px dashed var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--color-surface);
}
.import-drop-zone.dragover {
    border-color: var(--color-accent);
    background-color: var(--color-accent-light);
}
.import-drop-zone .icon-container {
    width: 72px; height: 72px;
    background: var(--color-accent-light); color: var(--color-accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.import-drop-zone .icon-container .lucide { width: 36px; height: 36px; }
.import-drop-zone h3 {
    font-size: 18px; font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}
.import-drop-zone p {
    font-size: 14px;
    color: var(--color-text-secondary);
}
.import-drop-zone .browse-link {
    color: var(--color-accent);
    font-weight: 600;
}
.or-separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--color-text-tertiary);
    margin: 20px 0 16px;
}
.or-separator::before,
.or-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--color-border);
}
.or-separator:not(:empty)::before {
    margin-right: .5em;
}
.or-separator:not(:empty)::after {
    margin-left: .5em;
}
.file-upload-counter {
    text-align: right;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin: 16px 0 8px;
    padding: 0 4px;
}
.file-upload-list {
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.file-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    gap: 12px;
}
.file-item-icon {
    color: var(--color-accent);
    flex-shrink: 0;
}
.file-item-details {
    flex-grow: 1;
    overflow: hidden;
}
.file-item-name {
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-item-size {
    font-size: 13px;
    color: var(--color-text-secondary);
}
.file-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-tertiary);
    padding: 4px;
    border-radius: 50%;
}
.file-item-remove:hover {
    background-color: #fee2e2;
    color: var(--color-red);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}
.input-with-icon {
    position: relative;
}
.input-with-icon .lucide {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-tertiary);
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.input-with-icon input {
    padding-left: 44px;
}
.form-group input, .form-group select {
    width: 100%;
    height: 44px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    padding: 8px 14px;
    border-radius: var(--border-radius-md);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.form-group input:read-only {
    background-color: var(--color-bg-light);
    cursor: default;
}
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%236c757d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' class='lucide lucide-chevron-down' viewBox='0 0 24 24'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}
.modal-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(30, 32, 34, 0.6);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.modal-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}
.modal {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background-color: var(--color-surface);
    width: 100%; max-width: 440px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    z-index: 2010;
    display: flex; flex-direction: column;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}
.modal.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}
.modal-header {
    padding: 24px 24px 0;
    text-align: center;
    position: relative;
}
.modal-icon-container {
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    transition: all 0.3s ease;
}
.modal-icon-container.success { background-color: #dcfce7; color: var(--color-green); }
.modal-icon-container.error { background-color: #fee2e2; color: var(--color-red); }
.modal-icon-container.confirm { background-color: #ffedd5; color: var(--color-orange); }
.modal-icon-container.info { background-color: var(--color-accent-light); color: var(--color-accent); }
.modal-icon-container .lucide {
    width: 32px; height: 32px;
}
.modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-primary);
}
.modal-close-btn {
    position: absolute;
    top: 12px; right: 12px;
    background: none; border: none;
    color: var(--color-text-tertiary);
    font-size: 28px; line-height: 1;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 36px; height: 36px;
}
.modal-close-btn:hover {
    background-color: var(--color-bg-light);
}
.modal-body {
    padding: 16px 24px;
    text-align: center;
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}
#modalContentTextarea {
    width: 100%;
    min-height: 150px;
    padding: 12px;
    font-family: var(--font-family);
    font-size: 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    resize: vertical;
    margin-top: 12px;
    text-align: left;
}
#modalContentTextarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}
.modal-footer {
    padding: 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
    background-color: var(--color-bg);
    border-bottom-left-radius: var(--border-radius-lg);
    border-bottom-right-radius: var(--border-radius-lg);
}
.modal-footer .btn {
    height: 48px;
    flex-grow: 1;
}
.download-popover {
    position: fixed;
    width: 200px;
    background-color: var(--color-surface);
    border-radius: var(--border-radius-md);
    z-index: 1020;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 8px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.download-popover.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.popover-item-action {
    font-weight: 500; font-size: 15px; color: var(--color-text-primary);
    padding: 10px 12px; border-radius: var(--border-radius-sm);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}
.popover-item-action:hover {
    background-color: var(--color-bg-light);
    color: var(--color-accent);
}
.popover-item-action .lucide {
    width: 18px;
    height: 18px;
}

.table-controls {
    gap: 12px;
}

.filter-pills button {
    font-size: 14px;
    padding: 6px 12px;
}

.search-filter .filter-input {
    width: 180px;
}

.date-filter .filter-input {
    width: 150px;
}

.search-actions-group .btn {
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
    gap: 6px;
}

.search-actions-group .btn .lucide {
    width: 15px;
    height: 15px;
}

.btn.btn-download-gradient {
    background: linear-gradient(45deg, #166D3B, #21A366);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.btn.btn-download-gradient:hover {
    filter: brightness(1.1);
}

.btn.btn-neutral {
    background-color: #4B5563;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(75, 85, 99, 0.2);
}

.btn.btn-neutral:hover {
    background-color: #374151;
}

.btn.btn-primary .lucide {
    width: 16px;
    height: 16px;
}

.btn.btn-download {
    background: linear-gradient(45deg, #16a34a, #22c55e);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
}

.btn.btn-download:hover {
    filter: brightness(1.1);
    box-shadow: var(--shadow-md);
}

.btn.btn-download .lucide {
    width: 16px;
    height: 16px;
}

.btn.btn-neutral {
    background-color: #475569;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(71, 85, 105, 0.2);
}

.btn.btn-neutral:hover {
    background-color: #334155;
    box-shadow: var(--shadow-md);
}

.btn.btn-neutral .lucide {
    width: 16px;
    height: 16px;
}

.btn-date-filter {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    font-weight: 600;
    gap: 10px;
    justify-content: flex-start;
    padding: 0 14px;
    height: 44px;
    min-width: 190px;
    transition: all 0.25s ease;
}

.btn-date-filter:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background-color: var(--color-accent-light);
    transform: none;
    box-shadow: none;
}

.btn-date-filter .lucide {
    color: var(--color-text-tertiary);
    transition: color 0.25s ease;
}

.btn-date-filter:hover .lucide {
    color: var(--color-accent);
}

.btn-date-filter span {
    flex-grow: 1;
    text-align: left;
}

.input-with-icon {
    position: relative;
}

.input-with-icon .lucide {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-tertiary);
    pointer-events: none;
}

.input-with-icon input {
    padding-left: 50px !important; 
}