:root {
    --bg: #f5f7fb;
    --sidebar: #111827;
    --sidebar-soft: #1f2937;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --danger: #dc2626;
    --success-bg: #dcfce7;
    --success-text: #166534;
}

* {
    box-sizing: border-box;
}

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

img,
svg,
video,
canvas {
    max-width: 100%;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/**

----------- SIDEBAR -----------

*/

.sidebar {
    width: 260px;
    background: var(--sidebar);
    color: white;
    padding: 24px 18px;
    position: fixed;
    inset: 0 auto 0 0;
}

.sidebar-logo {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.sidebar-logo img {
    max-width: 150px;
    height: auto;
    display: block;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    padding: 12px 14px;
    border-radius: 12px;
    color: #d1d5db;
    font-weight: 600;

    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-icon {
    width: 22px;
    display: inline-flex;
    justify-content: center;
    font-size: 17px;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: var(--sidebar-soft);
    color: white;
}

.sidebar-group {
    margin-top: 4px;
}

.sidebar-group-title {
    padding: 12px 14px;
    border-radius: 12px;
    color: #f9fafb;
    font-weight: 700;

    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-subnav {
    margin-left: 34px;
    margin-top: 4px;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,.12);

    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-sublink {
    padding: 9px 12px;
    border-radius: 10px;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
}

.sidebar-sublink:hover,
.sidebar-sublink.active {
    background: var(--sidebar-soft);
    color: white;
}

.clickable-title {
    font-weight: 800;
    color: var(--text);
}

.clickable-title:hover {
    color: var(--primary);
}

.notification-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.notification-preview {
    margin: 12px 0 0;
    color: #374151;
    line-height: 1.55;
}

.metric-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.metric-link:hover {
    background: #eff6ff;
    color: var(--primary);
}

.attachment-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: block;
}

.attachment-file-icon {
    width: 64px;
    height: 48px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #f9fafb;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
}

.bulk-add-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bulk-add-input {
    width: 90px !important;
}

.main {
    margin-left: 260px;
    width: calc(100% - 260px);
    min-width: 0;
}

.topbar {
    height: 72px;
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.topbar-title {
    font-size: 20px;
    font-weight: 700;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--muted);
    font-size: 14px;
}

.content {
    padding: 32px;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 28px;
}

.page-title {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 6px;
}

.page-subtitle {
    color: var(--muted);
    margin: 0;
}

.grid {
    min-width: 0;
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.card {
    min-width: 0;
    max-width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}

.muted {
    color: var(--muted);
}

.btn {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 650;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    transition: all .15s ease;
}

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

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-light {
    background: #f3f4f6;
    color: #111827;
}

.btn-danger {
    background: #fee2e2;
    color: var(--danger);
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.list-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    background: #fff;
}

.list-item.unread {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.condo-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.condo-title {
    font-size: 17px;
    font-weight: 750;
    margin: 0;
}

.condo-address {
    color: var(--muted);
    margin: 4px 0 0;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.invite-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
    margin-top: 10px;
}

input {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 9px 10px;
}

code {
    background: #f3f4f6;
    color: #111827;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 700;
}
.alert-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
}

.form {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    background: white;
    font-size: 14px;

    transition: all .15s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.admin-table tbody tr:hover {
    background: #f9fafb;
}

.document-feature-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f9fafb;
}

.document-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 26px;
    flex-shrink: 0;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #f3f4f6;
    border: 1px solid var(--border);

    text-decoration: none;
    font-size: 18px;

    transition: all .15s ease;
}

.icon-btn:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}
/* Badge base */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.badge-muted {
    background: #f3f4f6;
    color: #6b7280;
}

/* Ticket status */

.badge-ticket-new {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-ticket-under_review {
    background: #fef3c7;
    color: #92400e;
}

.badge-ticket-accepted {
    background: #dcfce7;
    color: #166534;
}

.badge-ticket-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.badge-ticket-resolved {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-ticket-closed {
    background: #f3f4f6;
    color: #374151;
}

/* Ticket priority */

.badge-priority-low {
    background: #f3f4f6;
    color: #374151;
}

.badge-priority-normal {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-priority-high {
    background: #fef3c7;
    color: #92400e;
}

.badge-priority-urgent {
    background: #fee2e2;
    color: #991b1b;
}

/* Meeting status */

.badge-meeting-draft {
    background: #f3f4f6;
    color: #374151;
}

.badge-meeting-scheduled {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-meeting-in_progress {
    background: #fef3c7;
    color: #92400e;
}

.badge-meeting-completed {
    background: #dcfce7;
    color: #166534;
}

.badge-meeting-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.badge-minute-generated {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-minute-under_review {
    background: #fef3c7;
    color: #92400e;
}

.badge-minute-awaiting_signatures {
    background: #ede9fe;
    color: #5b21b6;
}

.badge-minute-signed {
    background: #dcfce7;
    color: #166534;
}

.badge-minute-distributed {
    background: #e0e7ff;
    color: #3730a3;
}

/* Vote status */

.vote-approved {
    background: #dcfce7;
    color: #166534;
}

.vote-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.table-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.admin-table thead {
    background: #f9fafb;
}

.admin-table th {
    font-size: 13px;
    color: #374151;
    text-align: left;
    padding: 14px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
}

.admin-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: #fafafa;
}

.admin-table tbody tr:nth-child(even) {
    background: #fcfcfc;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.section-description {
    color: var(--muted);
    margin-bottom: 20px;
}

.copy-token {
    max-width: 360px;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f9fafb;
    padding: 8px 10px;
    cursor: pointer;

    display: flex;
    align-items: center;
    gap: 10px;

    text-align: left;
    transition: all .15s ease;
}

.copy-token:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.copy-token span {
    flex: 1;
    overflow-x: auto;
    white-space: nowrap;
    font-family: monospace;
    font-size: 12px;
    color: #111827;
}

.copy-token small {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
}
/* .admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.admin-table th {
    background: #f9fafb;
    color: #374151;
    font-size: 13px;
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.admin-table input,
.admin-table select,
.form-group select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 9px 10px;
    background: white;
} */

.summary-box {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f9fafb;
    border: 1px solid var(--border);
}

.text-danger {
    color: var(--danger);
    font-weight: 700;
}

/* =========================
   STATS
========================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(15,23,42,.04);

    transition: all .2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15,23,42,.08);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
}

.stat-value {
    display: block;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #eff6ff;
    color: var(--primary);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
    margin-bottom: 16px;
}
/* .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.stat-label {
    display: block;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
} */

/* =========================
   BREADCRUMBS
========================= */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    color: var(--muted);
}

.breadcrumbs a {
    color: var(--muted);
    font-weight: 600;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs span {
    color: var(--muted);
}

.breadcrumbs .current {
    color: var(--text);
    font-weight: 700;
}

/* =========================
   EMPTY STATE
========================= */

.empty-state {
    text-align: center;
    padding: 44px 24px;
    border: 1px dashed var(--border);
    border-radius: 18px;
    background: #f9fafb;
}

.empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: #eff6ff;
    color: var(--primary);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 26px;
}

.empty-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 8px;
}

.empty-description {
    color: var(--muted);
    margin: 0 0 20px;
}

/* =========================
   QUICK ACTION
========================= */

.quick-actions {
    display: grid;
    gap: 12px;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f9fafb;
    transition: all .15s ease;
}

.quick-action-card:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    transform: translateY(-1px);
}

.quick-action-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.quick-action-card strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.quick-action-card small {
    color: var(--muted);
}

/* =========================
   AUTH
========================= */

.auth-body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(37,99,235,.14), transparent 34%),
        linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 620px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 24px 70px rgba(15,23,42,.12);
}

.auth-header {
    margin-bottom: 28px;
    text-align: center;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #eff6ff;
    color: var(--primary);
    font-weight: 900;
}

.auth-header h1 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 850;
}

.auth-header p {
    margin: 0;
    color: var(--muted);
}

.auth-submit {
    width: 100%;
    margin-top: 22px;
    padding: 13px 16px;
}

.auth-footer {
    margin: 22px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 800;
}

.register-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.register-choice {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #f9fafb;
    padding: 16px;
    text-align: left;
    cursor: pointer;
    transition: all .15s ease;
}

.register-choice.active {
    background: #eff6ff;
    border-color: #bfdbfe;
    box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}

.register-choice.disabled {
    opacity: .62;
    cursor: not-allowed;
}

.register-choice-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: white;
    font-size: 22px;
    margin-bottom: 12px;
}

.register-choice strong {
    display: block;
    font-size: 15px;
    margin-bottom: 6px;
}

.register-choice small {
    display: block;
    color: var(--muted);
    line-height: 1.4;
}

.register-choice em {
    display: inline-block;
    margin-top: 10px;
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
    color: #92400e;
    background: #fef3c7;
    padding: 4px 8px;
    border-radius: 999px;
}

@media (max-width: 640px) {
    .register-choice-grid {
        grid-template-columns: 1fr;
    }
}

.text-success {
    color: #16a34a;
}
.priority-low {
    background: #f3f4f6;
    color: #374151;
}

.priority-normal {
    background: #dbeafe;
    color: #1d4ed8;
}

.priority-high {
    background: #fef3c7;
    color: #92400e;
}

.priority-urgent {
    background: #fee2e2;
    color: #991b1b;
}

.status-new {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-under_review {
    background: #fef3c7;
    color: #92400e;
}

.status-accepted {
    background: #dcfce7;
    color: #166534;
}

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

.status-resolved {
    background: #e0e7ff;
    color: #3730a3;
}

.status-closed {
    background: #f3f4f6;
    color: #374151;
}
.details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.details-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.details-row:last-child {
    border-bottom: 0;
}

.details-row span:first-child {
    color: var(--muted);
}

.section-small-title {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 8px;
}

.comment-box {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    background: #f9fafb;
}

.comment-box p {
    margin-top: 0;
    line-height: 1.6;
}
.meeting-status-draft {
    background: #f3f4f6;
    color: #374151;
}

.meeting-status-scheduled {
    background: #dbeafe;
    color: #1d4ed8;
}

.meeting-status-in_progress {
    background: #fef3c7;
    color: #92400e;
}

.meeting-status-completed {
    background: #dcfce7;
    color: #166534;
}

.meeting-status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}
.agenda-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.agenda-item {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    background: #f9fafb;
}

.agenda-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.agenda-item-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.clean-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.clean-list li {
    margin-bottom: 6px;
}
.vote-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.vote-summary-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}

.vote-summary-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.vote-summary-card strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.vote-summary-card small {
    color: var(--muted);
}

.vote-approved {
    background: #dcfce7;
    color: #166534;
}

.vote-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.vote-table th,
.vote-table td {
    text-align: center;
}

.vote-table th:first-child,
.vote-table td:first-child,
.vote-table th:last-child,
.vote-table td:last-child {
    text-align: left;
}
.minute-editor {
    width: 100%;
    min-height: 700px;
    resize: vertical;
    font-family: "Inter", sans-serif;
    line-height: 1.7;
    font-size: 14px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}

.minute-editor:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* =========================
   MOBILE SIDEBAR
========================= */

.mobile-menu-btn {
    display: none;
}

.sidebar-overlay {
    display: none;
}

@media (max-width: 1024px) {

    .mobile-menu-btn {
        position: fixed;
        top: 16px;
        left: 16px;
        z-index: 1200;

        width: 44px;
        height: 44px;

        border: 0;
        border-radius: 12px;

        background: white;
        box-shadow: 0 4px 20px rgba(0,0,0,.15);

        cursor: pointer;

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 22px;
        font-weight: bold;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform .25s ease;
        z-index: 1300;
    }

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

    .sidebar-overlay {
        position: fixed;
        inset: 0;

        background: rgba(0,0,0,.45);

        z-index: 1250;

        display: none;
    }

    .sidebar-overlay-visible {
        display: block;
    }

    .main {
        margin-left: 0;
        width: 100%;
        min-width: 0;
    }

    .topbar {
        padding-left: 72px;
    }

    .content {
        padding: 20px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

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

    .actions {
        width: 100%;
    }

    .actions .btn {
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .vote-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .admin-table {
        min-width: 900px;
    }

    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.tab-btn {
    border: 0;
    background: transparent;
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 700;
    color: var(--muted);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

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

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

@media (max-width: 768px) {
    .tabs {
        padding-bottom: 4px;
    }

    .tab-btn {
        padding: 12px 10px;
        font-size: 14px;
    }
}

.badge-work-order-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-work-order-assigned {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-work-order-accepted {
    background: #ede9fe;
    color: #5b21b6;
}

.badge-work-order-in_progress {
    background: #ffedd5;
    color: #9a3412;
}

.badge-work-order-completed {
    background: #dcfce7;
    color: #166534;
}

.badge-work-order-verified {
    background: #ccfbf1;
    color: #115e59;
}

.badge-work-order-cancelled {
    background: #fee2e2;
    color: #991b1b;
}