/* ==========================================================================
   DocumentRegistryPH Admin Portal - Material Design Stylesheet
   Compatible with AdminLTE 3 / Bootstrap 4
   ========================================================================== */

:root {
    --mat-primary: #1976d2;
    --mat-primary-hover: #1565c0;
    --mat-primary-light: #e3f2fd;
    --mat-primary-border: #90caf9;
    --mat-success: #2e7d32;
    --mat-success-light: #e8f5e9;
    --mat-warning: #ed6c02;
    --mat-warning-light: #fff4e5;
    --mat-danger: #d32f2f;
    --mat-danger-light: #ffebee;
    --mat-surface: #ffffff;
    --mat-background: #f8fafc;
    --mat-text-primary: #1e293b;
    --mat-text-secondary: #64748b;
    --mat-text-muted: #94a3b8;
    --mat-border: #e2e8f0;
    --mat-radius-sm: 4px;
    --mat-radius: 8px;
    --mat-radius-lg: 12px;
    --mat-radius-pill: 50rem;
    --mat-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --mat-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --mat-shadow-2: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --mat-shadow-3: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --mat-shadow-dialog: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --mat-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    color: var(--mat-text-primary);
    background-color: var(--mat-background);
    font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   Elevation & Card Enhancements
   ========================================================================== */
.card {
    border: 1px solid var(--mat-border);
    border-radius: var(--mat-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    background-color: var(--mat-surface);
    transition: var(--mat-transition);
}

.card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
}

/* Explicitly preserve and enhance AdminLTE colored outline headers */
.card-primary.card-outline {
    border-top: 3px solid #2563eb !important;
}
.card-secondary.card-outline {
    border-top: 3px solid #64748b !important;
}
.card-success.card-outline {
    border-top: 3px solid #16a34a !important;
}
.card-info.card-outline {
    border-top: 3px solid #0284c7 !important;
}
.card-warning.card-outline {
    border-top: 3px solid #d97706 !important;
}
.card-danger.card-outline {
    border-top: 3px solid #dc2626 !important;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--mat-border);
    padding: 0.85rem 1.25rem;
    font-weight: 600;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--mat-text-primary);
    margin: 0;
}

.card-footer {
    background-color: #fafbfd;
    border-top: 1px solid var(--mat-border);
    padding: 0.75rem 1.25rem;
}

/* ==========================================================================
   Navigation & App Bar
   ========================================================================== */
.main-header.navbar {
    border-bottom: 1px solid var(--mat-border);
    box-shadow: var(--mat-shadow-sm);
    background-color: #ffffff !important;
    padding: 0.5rem 1rem;
}

.brand-link {
    border-bottom: 1px solid var(--mat-border) !important;
    padding: 0.85rem 1rem !important;
    transition: var(--mat-transition);
}

.brand-link .brand-text {
    font-weight: 600 !important;
    letter-spacing: -0.01em;
    color: var(--mat-text-primary) !important;
}

.sidebar {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.sidebar .nav-sidebar .nav-item {
    margin-bottom: 2px;
}

.sidebar .nav-sidebar .nav-link {
    border-radius: var(--mat-radius);
    padding: 0.65rem 0.85rem;
    color: var(--mat-text-secondary);
    font-weight: 500;
    transition: var(--mat-transition);
}

.sidebar .nav-sidebar .nav-link:hover {
    background-color: rgba(25, 118, 210, 0.08);
    color: var(--mat-primary);
}

.sidebar .nav-sidebar .nav-link.active {
    background-color: var(--mat-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.3) !important;
}

.sidebar .nav-sidebar .nav-link.active i.nav-icon {
    color: #ffffff !important;
}

.sidebar .nav-sidebar .nav-link i.nav-icon {
    font-size: 1rem;
    margin-right: 0.6rem;
    color: var(--mat-text-secondary);
    transition: var(--mat-transition);
}

.user-panel {
    border-bottom: 1px solid var(--mat-border) !important;
    padding: 0.75rem 0.25rem 0.85rem 0.25rem !important;
}

.user-panel .image img {
    box-shadow: var(--mat-shadow-1);
    border: 2px solid #ffffff;
}

.user-panel .info a {
    font-weight: 600;
    color: var(--mat-text-primary);
}

/* User profile chip on top navbar */
.navbar-user-chip {
    display: inline-flex;
    align-items: center;
    background-color: #f1f5f9;
    border: 1px solid var(--mat-border);
    border-radius: var(--mat-radius-pill);
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--mat-text-primary);
}

/* ==========================================================================
   Table Enhancements
   ========================================================================== */
.table {
    color: var(--mat-text-primary);
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8fafc;
    color: var(--mat-text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-top: none;
    border-bottom: 1px solid var(--mat-border);
    padding: 0.85rem 1rem;
    vertical-align: middle;
}

.table td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-top: 1px solid var(--mat-border);
    font-size: 0.875rem;
    transition: var(--mat-transition);
}

.table-hover tbody tr.clickable-row {
    cursor: pointer;
}

.table-hover tbody tr.clickable-row:hover {
    background-color: rgba(25, 118, 210, 0.04);
}

/* Clean Material-style row selection (replaces harsh bg-secondary) */
.table tbody tr.clickable-row.selected-row,
.table tbody tr.clickable-row.bg-secondary {
    background-color: rgba(25, 118, 210, 0.08) !important;
    color: var(--mat-text-primary) !important;
    border-left: 4px solid var(--mat-primary);
    font-weight: 500;
}

.table tbody tr.clickable-row.selected-row td,
.table tbody tr.clickable-row.bg-secondary td {
    color: var(--mat-text-primary) !important;
}

/* Hash & Mono cell values */
.code-mono,
.hash-full,
.hash-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.82rem;
    color: #334155;
    background-color: #f1f5f9;
    padding: 0.15rem 0.4rem;
    border-radius: var(--mat-radius-sm);
    border: 1px solid #e2e8f0;
}

/* ==========================================================================
   Buttons & Action Controls
   ========================================================================== */
.btn {
    font-weight: 500;
    border-radius: var(--mat-radius-sm);
    padding: 0.45rem 0.9rem;
    transition: var(--mat-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.btn-sm {
    padding: 0.3rem 0.65rem;
    font-size: 0.825rem;
}

.btn-primary {
    background-color: var(--mat-primary);
    border-color: var(--mat-primary);
    box-shadow: 0 1px 2px rgba(25, 118, 210, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--mat-primary-hover);
    border-color: var(--mat-primary-hover);
    box-shadow: 0 4px 6px rgba(25, 118, 210, 0.3);
}

/* Task Pane Action Buttons */
.task-action-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.65rem 1rem;
    margin-bottom: 0.4rem;
    border-radius: var(--mat-radius);
    border: 1px solid var(--mat-border);
    background-color: #ffffff;
    color: var(--mat-text-primary);
    font-weight: 500;
    text-align: left;
    transition: var(--mat-transition);
    text-decoration: none !important;
}

.task-action-btn:hover {
    background-color: #f8fafc;
    border-color: var(--mat-primary);
    color: var(--mat-primary);
    transform: translateY(-1px);
    box-shadow: var(--mat-shadow-1);
}

.task-action-btn i {
    width: 24px;
    font-size: 0.95rem;
    margin-right: 0.5rem;
    color: var(--mat-text-secondary);
    transition: var(--mat-transition);
}

.task-action-btn:hover i {
    color: var(--mat-primary);
}

.task-action-btn.btn-action-add:hover {
    border-color: var(--mat-success);
    color: var(--mat-success);
}
.task-action-btn.btn-action-add:hover i {
    color: var(--mat-success);
}

.task-action-btn.btn-action-delete:hover {
    border-color: var(--mat-danger);
    color: var(--mat-danger);
}
.task-action-btn.btn-action-delete:hover i {
    color: var(--mat-danger);
}

/* ==========================================================================
   Form Controls
   ========================================================================== */
.form-control {
    border-radius: var(--mat-radius-sm);
    border: 1px solid #cbd5e1;
    color: var(--mat-text-primary);
    padding: 0.45rem 0.75rem;
    transition: var(--mat-transition);
    font-size: 0.875rem;
}

.form-control:focus {
    border-color: var(--mat-primary);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

.form-control-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.825rem;
}

label.control-label {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--mat-text-secondary);
    margin-bottom: 0.35rem;
    text-transform: capitalize;
}

.select2-selection {
    overflow: hidden;
    border-radius: var(--mat-radius-sm) !important;
    border: 1px solid #cbd5e1 !important;
}

/* ==========================================================================
   Material Chips / Badges
   ========================================================================== */
.mat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3em 0.7em;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--mat-radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mat-badge-success {
    background-color: var(--mat-success-light);
    color: var(--mat-success);
    border: 1px solid #c8e6c9;
}

.mat-badge-warning {
    background-color: var(--mat-warning-light);
    color: var(--mat-warning);
    border: 1px solid #ffe0b2;
}

.mat-badge-danger {
    background-color: var(--mat-danger-light);
    color: var(--mat-danger);
    border: 1px solid #ffcdd2;
}

.mat-badge-primary {
    background-color: var(--mat-primary-light);
    color: var(--mat-primary);
    border: 1px solid var(--mat-primary-border);
}

.mat-badge-secondary {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.mat-badge i {
    font-size: 0.65rem;
}

/* ==========================================================================
   Modal Dialogs
   ========================================================================== */
.modal-content {
    border: none;
    border-radius: var(--mat-radius-lg);
    box-shadow: var(--mat-shadow-dialog);
    overflow: hidden;
}

.modal-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--mat-border);
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
}

.modal-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--mat-text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-body {
    padding: 1.5rem;
    max-height: calc(85vh - 130px);
    overflow-y: auto;
}

.modal-footer {
    background-color: #fafbfd;
    border-top: 1px solid var(--mat-border);
    padding: 0.9rem 1.5rem;
}

/* ==========================================================================
   Empty State Component
   ========================================================================== */
.mat-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.mat-empty-state-icon {
    font-size: 2.75rem;
    color: var(--mat-text-muted);
    margin-bottom: 0.85rem;
    display: inline-block;
    opacity: 0.6;
}

.mat-empty-state-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--mat-text-secondary);
    margin-bottom: 0.35rem;
}

.mat-empty-state-desc {
    font-size: 0.85rem;
    color: var(--mat-text-muted);
    max-width: 320px;
    margin: 0 auto;
}

/* ==========================================================================
   Properties Card (Key-Value Display)
   ========================================================================== */
.mat-property-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mat-property-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
    transition: var(--mat-transition);
}

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

.mat-property-item:hover {
    background-color: #fafbfd;
}

.mat-property-label {
    font-weight: 600;
    color: var(--mat-text-secondary);
    min-width: 110px;
    margin-right: 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mat-property-value {
    color: var(--mat-text-primary);
    text-align: right;
    word-break: break-all;
    font-weight: 500;
}

/* ==========================================================================
   Small Box / Dashboard Metrics (Modern Vibrant Gradient Cards)
   ========================================================================== */
.small-box {
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease !important;
    overflow: hidden !important;
    border: none !important;
    position: relative;
    display: block;
    margin-bottom: 1.25rem;
}

.small-box:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14) !important;
    transform: translateY(-3px);
}

.small-box.bg-info {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%) !important;
    color: #ffffff !important;
}

.small-box.bg-success {
    background: linear-gradient(135deg, #064e3b 0%, #059669 100%) !important;
    color: #ffffff !important;
}

.small-box.bg-warning {
    background: linear-gradient(135deg, #78350f 0%, #d97706 100%) !important;
    color: #ffffff !important;
}

.small-box.bg-danger {
    background: linear-gradient(135deg, #881337 0%, #e11d48 100%) !important;
    color: #ffffff !important;
}

.small-box .inner {
    padding: 1.25rem 1.25rem 0.85rem !important;
}

.small-box .inner h3 {
    font-size: 2.25rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 0.25rem !important;
    color: #ffffff !important;
}

.small-box .inner p {
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    opacity: 0.92 !important;
    margin-bottom: 0 !important;
    color: #ffffff !important;
}

.small-box .icon {
    top: 16px !important;
    right: 18px !important;
    font-size: 3.5rem !important;
    opacity: 0.22 !important;
    color: #ffffff !important;
    transition: var(--mat-transition);
}

.small-box:hover .icon {
    opacity: 0.35 !important;
    transform: scale(1.1);
}

.small-box-footer {
    padding: 0.5rem 1.25rem !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    background-color: rgba(0, 0, 0, 0.15) !important;
    color: rgba(255, 255, 255, 0.88) !important;
    letter-spacing: 0.02em !important;
    display: block;
    text-decoration: none !important;
}

.small-box-footer:hover {
    background-color: rgba(0, 0, 0, 0.25) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Skeletons & Animations
   ========================================================================== */
@keyframes portal-skel-pulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.75; }
}

.portal-skel-line {
    animation: portal-skel-pulse 1.15s ease-in-out infinite;
    background-color: #e2e8f0 !important;
}

/* Custom modern scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ==========================================================================
   Production-Grade UI Enhancements & Components
   ========================================================================== */

/* Soft Badges */
.badge-soft-primary {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-weight: 500;
}
.badge-soft-success {
    background-color: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    font-weight: 500;
}
.badge-soft-warning {
    background-color: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
    font-weight: 500;
}
.badge-soft-danger {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    font-weight: 500;
}
.badge-soft-info {
    background-color: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    font-weight: 500;
}
.badge-soft-secondary {
    background-color: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    font-weight: 500;
}

/* Status Pulse Indicator */
.status-pulse-container {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.25rem 0.65rem;
    border-radius: var(--mat-radius-pill);
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    position: relative;
    display: inline-block;
}

.status-pulse::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(34, 197, 94, 0.45);
    animation: pulse-ring 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.6);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* KPI Metric Cards (Modern SaaS Dashboard Cards) */
.kpi-card {
    background: #ffffff;
    border: 1px solid var(--mat-border);
    border-radius: var(--mat-radius-lg);
    padding: 1.25rem;
    box-shadow: var(--mat-shadow-1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--mat-shadow-2);
}

.kpi-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.kpi-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.kpi-icon-primary {
    background-color: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}
.kpi-icon-success {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}
.kpi-icon-warning {
    background-color: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}
.kpi-icon-danger {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.kpi-icon-info {
    background-color: #f0f9ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.kpi-card-value {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.1;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.kpi-card-label {
    font-size: 0.825rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 0.65rem;
}

.kpi-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.65rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Card Header Icon Chip */
.card-header-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    margin-right: 0.65rem;
}

/* Modern Production Tables */
.table-portal thead th {
    background-color: #f8fafc;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-top: none;
    border-bottom: 1px solid var(--mat-border);
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.table-portal tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-top: 1px solid #f1f5f9;
}

.table-portal tbody tr {
    transition: background-color 0.15s ease;
}

.table-portal tbody tr:hover {
    background-color: #f8fafc;
}

/* Executive Hub Cards */
.hub-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e3a8a 100%);
    border-radius: var(--mat-radius-lg);
    padding: 2.25rem 2rem;
    color: #ffffff;
    box-shadow: var(--mat-shadow-3);
    margin-bottom: 1.75rem;
    position: relative;
    overflow: hidden;
}

.hub-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0) 70%);
    pointer-events: none;
}

.hub-card {
    background: #ffffff;
    border: 1px solid var(--mat-border);
    border-radius: var(--mat-radius-lg);
    box-shadow: var(--mat-shadow-1);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
}

.hub-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mat-shadow-3);
    border-color: #93c5fd;
}

.hub-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hub-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.hub-card-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.45;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.hub-card-cta {
    font-size: 0.825rem;
    font-weight: 600;
    color: #2563eb;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.15s ease;
}

.hub-card:hover .hub-card-cta {
    gap: 10px;
}

/* Pace Progress Bar Custom Styling */
.pace {
    pointer-events: none;
    user-select: none;
}
.pace-inactive {
    display: none;
}
.pace .pace-progress {
    background: #3b82f6;
    position: fixed;
    z-index: 2000;
    top: 0;
    right: 100%;
    width: 100%;
    height: 3px;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

/* ==========================================================================
   Organization View & Devices Table Enhancements
   ========================================================================== */

/* Fixed layout table for stable column widths */
.table-fixed {
    table-layout: fixed !important;
    width: 100% !important;
}

/* Machine ID Monospace Chip with Ellipsis */
.machine-id-chip {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.825rem;
    font-weight: 600;
    color: #1e293b;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.machine-id-chip:hover,
.machine-id-chip:focus {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
    outline: none;
}

/* Subscription Validity Banner */
.org-subscription-widget {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.35rem;
}

.org-subscription-widget .subscription-dates {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #475569;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px dashed #e2e8f0;
}

/* Organization Detail Tile (Spacious, breathable key-value cards) */
.org-detail-tile {
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.org-detail-tile:hover {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
}

.org-detail-tile .tile-label {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.org-detail-tile .tile-value {
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.45;
    word-break: break-word;
}


/* Generic Monospace Technical Chip (IDs, hashes, keys, tokens) */
.mono-chip {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mono-chip:hover,
.mono-chip:focus {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
    outline: none;
}

/* Page Header Icon Badge */
.header-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}



