/* ==========================================================================
   Oficina Angola – Frontend Styles
   Prefix: of-
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
.of-wrap * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.of-wrap {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    color: #2d2b2c;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Login Card
   -------------------------------------------------------------------------- */
.of-login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #2d2b2c 0%, #3a3839 60%, #4b494a 100%);
    padding: 20px;
}

.of-login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    padding: 48px 40px 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.of-login-logo {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #4b494a, #3fbdb0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
}

.of-login-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: #3fbdb0;
    margin-bottom: 4px;
}

.of-login-card .of-login-role {
    font-size: 13px;
    color: #888;
    margin-bottom: 32px;
}

.of-pin-display {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

.of-pin-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: transparent;
    transition: all 0.2s;
}

.of-pin-dot.filled {
    background: #3fbdb0;
    border-color: #3fbdb0;
}

.of-pin-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.of-pin-btn {
    background: #f5f7fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #2d2b2c;
    cursor: pointer;
    padding: 16px;
    transition: all 0.15s;
    line-height: 1;
}

.of-pin-btn:hover {
    background: #3fbdb0;
    color: #fff;
    border-color: #3fbdb0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(63, 189, 176, 0.3);
}

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

.of-pin-btn.of-clear {
    background: #fff0f0;
    border-color: #ffcccc;
    color: #e94560;
    font-size: 14px;
    font-weight: 700;
}

.of-pin-btn.of-clear:hover {
    background: #e94560;
    color: #fff;
    border-color: #e94560;
}

.of-pin-btn.of-enter {
    background: #e8f4e8;
    border-color: #a8d5a2;
    color: #2e7d32;
    font-size: 14px;
    font-weight: 700;
}

.of-pin-btn.of-enter:hover {
    background: #2e7d32;
    color: #fff;
    border-color: #2e7d32;
}

.of-login-msg {
    font-size: 13px;
    color: #e94560;
    min-height: 22px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s;
}

@keyframes of-shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

/* --------------------------------------------------------------------------
   Dashboard Layout
   -------------------------------------------------------------------------- */
.of-dashboard {
    min-height: 100vh;
    background: #f0f2f5;
}

.of-topbar {
    background: linear-gradient(90deg, #3a3839, #4b494a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 60px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.of-topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
}

.of-topbar-brand span.of-icon {
    font-size: 22px;
}

.of-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.of-role-badge {
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.of-btn-logout {
    background: rgba(233, 69, 96, 0.8);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.of-btn-logout:hover {
    background: #e94560;
}

.of-content {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Toolbar (search + add button)
   -------------------------------------------------------------------------- */
.of-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.of-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.of-search-box {
    position: relative;
    flex: 1;
    max-width: 360px;
}

.of-search-box input {
    width: 100%;
    padding: 9px 14px 9px 38px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.of-search-box input:focus {
    border-color: #3fbdb0;
    box-shadow: 0 0 0 3px rgba(63, 189, 176, 0.15);
}

.of-search-box::before {
    content: '🔍';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.of-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.of-btn-primary {
    background: #3fbdb0;
    color: #fff;
}

.of-btn-primary:hover {
    background: #4b494a;
    box-shadow: 0 4px 12px rgba(63, 189, 176, 0.3);
    transform: translateY(-1px);
}

.of-btn-success {
    background: #2e7d32;
    color: #fff;
}

.of-btn-success:hover {
    background: #1b5e20;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.of-btn-danger {
    background: #e94560;
    color: #fff;
}

.of-btn-danger:hover {
    background: #c62828;
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

.of-btn-secondary {
    background: #f0f2f5;
    color: #555;
    border: 1px solid #d0d7de;
}

.of-btn-secondary:hover {
    background: #e0e4ea;
}

.of-btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 6px;
}

.of-btn-icon {
    padding: 4px;
    border-radius: 5px;
    line-height: 1;
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   Table
   -------------------------------------------------------------------------- */
.of-table-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    overflow-x: auto;   /* horizontal scroll when columns overflow */
    -webkit-overflow-scrolling: touch;
}

.of-table {
    width: auto;
    min-width: 1100px;
    border-collapse: collapse;
    font-size: 12px;
    table-layout: fixed;
}

.of-table thead th {
    background: #f8f9fa;
    color: #555;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 11px 8px;
    border-bottom: 2px solid #e8eaed;
    white-space: nowrap;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

.of-table tbody tr {
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.15s;
}

.of-table tbody tr:last-child {
    border-bottom: none;
}

.of-table tbody tr:hover {
    background: #f8f9fa;
}

.of-table td {
    padding: 10px 8px;
    vertical-align: middle;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

/* Allow specific columns to wrap */
.of-table td.of-td-wrap {
    white-space: normal;
    word-break: break-word;
}

/* Column widths (table-layout:fixed, must add up to ~1100px) */
/* Column widths – current table: Data · Cliente · Matrícula · Marca · Técnico · Serviço · Status · Localização · Orçamento · Estado · Acções */
.of-table thead th:nth-child(1),
.of-table td:nth-child(1)  { width: 80px;  }   /* Data */
.of-table thead th:nth-child(2),
.of-table td:nth-child(2)  { width: 90px;  }   /* Cliente */
.of-table thead th:nth-child(3),
.of-table td:nth-child(3)  { width: 100px; }   /* Matrícula */
.of-table thead th:nth-child(4),
.of-table td:nth-child(4)  { width: 105px; }   /* Marca/Modelo */
.of-table thead th:nth-child(5),
.of-table td:nth-child(5)  { width: 78px;  }   /* Técnico */
.of-table thead th:nth-child(6),
.of-table td:nth-child(6)  { width: 140px; white-space:normal; word-break:break-word; line-height:1.3; }  /* Serviço */
.of-table thead th:nth-child(7),
.of-table td:nth-child(7)  { width: 130px; white-space:normal; word-break:break-word; line-height:1.3; }  /* Status */
.of-table thead th:nth-child(8),
.of-table td:nth-child(8)  { width: 88px;  }   /* Localização */
.of-table thead th:nth-child(9),
.of-table td:nth-child(9)  { width: 100px; overflow:visible; }   /* Orçamento */
.of-table thead th:nth-child(10),
.of-table td:nth-child(10) { width: 64px;  }   /* Estado */
.of-table thead th:nth-child(11),
.of-table td:nth-child(11) { width: 62px; white-space:nowrap; }  /* Acções */

.of-table .of-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}
.of-empty-state {
    text-align: center;
    padding: 48px 20px;
    color: #999;
}

.of-empty-state .of-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.of-empty-state p {
    font-size: 15px;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Badges / Status
   -------------------------------------------------------------------------- */
.of-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.of-badge-green {
    background: #e8f5e9;
    color: #2e7d32;
}

.of-badge-red {
    background: #fce4ec;
    color: #c62828;
}

.of-badge-yellow {
    background: #fff8e1;
    color: #f57f17;
}

.of-badge-gray {
    background: #f0f2f5;
    color: #777;
}

.of-badge-blue {
    background: #e3f2fd;
    color: #1565c0;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.of-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid #f0f2f5;
    flex-wrap: wrap;
    gap: 8px;
}

.of-pagination-info {
    font-size: 12px;
    color: #888;
}

.of-pagination-controls {
    display: flex;
    gap: 4px;
    align-items: center;
}

.of-page-btn {
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    background: #fff;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    padding: 0 6px;
}

.of-page-btn:hover:not(:disabled) {
    background: #3fbdb0;
    color: #fff;
    border-color: #3fbdb0;
}

.of-page-btn.active {
    background: #3fbdb0;
    color: #fff;
    border-color: #3fbdb0;
}

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

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */
.of-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9998;
    backdrop-filter: blur(2px);
    animation: of-fade-in 0.2s ease;
}

@keyframes of-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.of-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
    width: calc(100% - 40px);
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    animation: of-slide-up 0.25s ease;
    display: flex;
    flex-direction: column;
}

.of-modal-lg {
    max-width: 900px;
}

.of-modal-xl {
    max-width: 1100px;
    max-height: 95vh;
}

@keyframes of-slide-up {
    from { transform: translate(-50%, calc(-50% + 30px)); opacity: 0; }
    to   { transform: translate(-50%, -50%); opacity: 1; }
}

.of-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f2f5;
    flex-shrink: 0;
}

.of-modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #3fbdb0;
}

.of-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.15s;
}

.of-modal-close:hover {
    color: #e94560;
}

.of-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.of-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #f0f2f5;
    flex-shrink: 0;
    background: #fafbfc;
    border-radius: 0 0 14px 14px;
}

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */
.of-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

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

.of-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.of-field label {
    font-size: 12px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.of-field input,
.of-field select,
.of-field textarea {
    padding: 9px 12px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 13px;
    color: #2d2b2c;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    width: 100%;
}

.of-field input:focus,
.of-field select:focus,
.of-field textarea:focus {
    border-color: #3fbdb0;
    box-shadow: 0 0 0 3px rgba(63, 189, 176, 0.15);
}

.of-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Upload area */
.of-upload-zone {
    border: 2px dashed #d0d7de;
    border-radius: 10px;
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafbfc;
}

.of-upload-zone:hover,
.of-upload-zone.drag-over {
    border-color: #3fbdb0;
    background: #f0f4f9;
}

.of-upload-zone .of-upload-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.of-upload-zone p {
    font-size: 13px;
    color: #777;
}

.of-upload-zone strong {
    color: #3fbdb0;
}

.of-upload-zone input[type="file"] {
    display: none;
}

.of-upload-name {
    margin-top: 10px;
    font-size: 12px;
    color: #2e7d32;
    font-weight: 600;
    display: none;
}

/* Detail value display */
.of-detail-value {
    padding: 9px 12px;
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
    min-height: 38px;
}

/* --------------------------------------------------------------------------
   PDF Viewer Modal
   -------------------------------------------------------------------------- */
.of-pdf-frame {
    width: 100%;
    height: 65vh;
    border: none;
    border-radius: 8px;
    background: #f0f2f5;
}

.of-pdf-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f2f5;
}

.of-pdf-actions h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #3fbdb0;
}

.of-approve-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.of-approve-btns {
    display: flex;
    gap: 10px;
}

/* --------------------------------------------------------------------------
   Stats Cards
   -------------------------------------------------------------------------- */
.of-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.of-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-left: 4px solid #3fbdb0;
}

.of-stat-card.green  { border-left-color: #2e7d32; }
.of-stat-card.red    { border-left-color: #e94560; }
.of-stat-card.yellow { border-left-color: #f57f17; }
.of-stat-card.blue   { border-left-color: #1565c0; }

.of-stat-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
}

.of-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #3fbdb0;
}

/* --------------------------------------------------------------------------
   Loading Spinner
   -------------------------------------------------------------------------- */
.of-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(63, 189, 176, 0.15);
    border-top-color: #3fbdb0;
    border-radius: 50%;
    animation: of-spin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes of-spin {
    to { transform: rotate(360deg); }
}

.of-loading {
    text-align: center;
    padding: 40px;
    color: #888;
}

/* --------------------------------------------------------------------------
   Alert / Notification
   -------------------------------------------------------------------------- */
.of-alert {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 99999;
    max-width: 360px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    animation: of-slide-in 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes of-slide-in {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0);   opacity: 1; }
}

.of-alert-success {
    background: #2e7d32;
    color: #fff;
}

.of-alert-error {
    background: #e94560;
    color: #fff;
}

.of-alert-info {
    background: #3fbdb0;
    color: #fff;
}

/* --------------------------------------------------------------------------
   TV Display
   -------------------------------------------------------------------------- */
/* Hide WordPress admin bar and theme chrome when TV is on screen */
body:has(.of-tv-wrap) #wpadminbar,
body:has(.of-tv-wrap) .site-header,
body:has(.of-tv-wrap) header,
body:has(.of-tv-wrap) footer,
body:has(.of-tv-wrap) .site-footer,
body:has(.of-tv-wrap) nav {
    display: none !important;
}

body:has(.of-tv-wrap) {
    overflow: hidden;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.of-tv-wrap {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #0a0a0f;
    color: #e0e6f0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.of-tv-header {
    background: linear-gradient(90deg, #3a3839, #4b494a);
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #e94560;
    flex-shrink: 0;
}

.of-tv-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #e0e6f0;
}

.of-tv-brand {
    color: #3fbdb0;
}

.of-tv-title span {
    color: #4b494a;
}

.of-tv-clock {
    font-size: 32px;
    font-weight: 300;
    color: #e0e6f0;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
}

.of-tv-table-wrap {
    flex: 1;
    overflow: hidden;
    padding: 16px 24px;
}

.of-tv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 17px;
}

.of-tv-table thead th {
    background: #0d1520;
    color: #8ab0c8;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 12px 16px;
    border-bottom: 2px solid #3fbdb0;
    text-align: left;
}

.of-tv-table tbody tr {
    border-bottom: 1px solid #111111;
    transition: background 0.3s;
}

.of-tv-table tbody tr:hover {
    background: #1c1c1c;
}

.of-tv-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.03);
}

.of-tv-table tbody tr:nth-child(even):hover {
    background: #1c1c1c;
}

.of-tv-table td {
    padding: 14px 16px;
    color: #d0dcee;
    vertical-align: middle;
}

.of-tv-table .of-tv-matricula {
    font-family: monospace;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.of-tv-table .of-tv-num {
    color: #e94560;
    font-weight: 700;
    font-size: 15px;
}

.of-tv-footer {
    background: #111111;
    border-top: 1px solid #2d2b2c;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 12px;
}

.of-tv-progress-bar {
    flex: 1;
    height: 4px;
    background: #2d2b2c;
    border-radius: 2px;
    overflow: hidden;
}

.of-tv-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3fbdb0, #e94560);
    border-radius: 2px;
    transition: width 1s linear;
}

.of-tv-page-info {
    font-size: 13px;
    color: #556;
    white-space: nowrap;
}

.of-tv-refresh-info {
    font-size: 11px;
    color: #334;
    white-space: nowrap;
}

.of-tv-empty {
    text-align: center;
    padding: 80px 20px;
    color: #334;
    font-size: 22px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .of-content {
        padding: 12px;
    }

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

    .of-topbar {
        padding: 0 14px;
    }

    .of-modal {
        width: calc(100% - 24px);
        max-width: 100%;
        top: auto;
        bottom: 12px;
        left: 12px;
        right: 12px;
        transform: none;
        border-radius: 14px;
        max-height: 88vh;
    }

    .of-table {
        font-size: 12px;
    }

    .of-table td,
    .of-table th {
        padding: 8px 10px;
    }
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.of-mt-8  { margin-top: 8px; }
.of-mt-16 { margin-top: 16px; }
.of-text-muted { color: #888; font-size: 12px; }
.of-text-center { text-align: center; }
.of-hidden { display: none !important; }
.of-d-flex { display: flex; }
.of-gap-8  { gap: 8px; }
