/* eSpedicija CMR - Main Stylesheet
 * Version 3.0.0
 */

/* Auth pending - sakrij body dok sesija nije provjerena */
body.auth-pending {
    visibility: hidden;
}

/* Import modal styles */
@import 'modal.css';

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    /* Colors */
    --primary: #667eea;
    --primary-dark: #5a6fd6;
    --primary-light: #818cf8;
    --secondary: #764ba2;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    
    /* Grays */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;

    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Layout */
    --navbar-height: 70px;
    --sidebar-width: 280px;
    --container-max: 1400px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    line-height: 1.5;
    color: var(--gray-800);
    background: var(--gray-50);
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   LAYOUT
   ======================================== */
.app-container {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-top: var(--navbar-height);
    padding: var(--space-lg);
    max-width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
}

@media (max-width: 768px) {
    .main-content {
        max-width: 100%;
        margin-left: 0;
        padding: var(--space-md);
    }
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--space-lg);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: white;
    font-size: var(--text-xl);
    font-weight: 700;
}

.navbar-logo {
    width: 128px;
    height: 128px;
    object-fit: contain;
    display: block;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-300);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-sm {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-xs);
}

.nav-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1;
    color: var(--gray-700);
    background: var(--gray-200);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-logout-btn:hover {
    background: var(--gray-300);
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-base);
}

/* Settings Modal Button (for R2/R8 CRUD) */
.btn-add-modal {
    background: var(--gray-600);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-sm) 12px;
    font-size: var(--text-lg);
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 38px;
    flex-shrink: 0;
}

.btn-add-modal:hover {
    background: var(--gray-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-add-modal:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-add-modal:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(75, 85, 99, 0.2);
}

/* ========================================
   FORMS
   ======================================== */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-xs);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: white;
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-input.has-error,
.form-select.has-error,
.form-textarea.has-error {
    border-color: var(--danger);
}

.form-input:disabled,
.form-select:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-hint {
    font-size: var(--text-xs);
    color: var(--gray-500);
    margin-top: var(--space-xs);
}

.field-error {
    font-size: var(--text-xs);
    color: var(--danger);
    margin-top: var(--space-xs);
}

/* ========================================
   CARDS
   ======================================== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.card-header {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
}

.card-body {
    padding: var(--space-lg);
}

.card-footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ========================================
   TABLES
   ======================================== */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.table th,
.table td {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-600);
}

.table tbody tr:hover {
    background: var(--gray-50);
}

.table-striped tbody tr:nth-child(odd) {
    background: var(--gray-50);
}

/* ========================================
   UTILITIES
   ======================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-500); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

.d-flex { display: flex; }
.d-none { display: none; }
.d-block { display: block; }

.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: var(--radius-md); }
.shadow { box-shadow: var(--shadow-md); }

.is-loading {
    position: relative;
    pointer-events: none;
}

.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.is-hidden {
    display: none !important;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-fadeIn {
    animation: fadeIn var(--transition-normal);
}

.animate-slideUp {
    animation: slideUp var(--transition-normal);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 240px;
    }
}

/* ========================================
   HAMBURGER BUTTON
   ======================================== */
.navbar-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
}

.navbar-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.25s ease;
}

.navbar-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.navbar-hamburger.open span:nth-child(2) {
    opacity: 0;
}
.navbar-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   MOBILE NAV OVERLAY
   ======================================== */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
}

.nav-overlay.open {
    display: block;
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 0;
        --navbar-height: 60px;
    }

    .navbar {
        padding: 0 var(--space-md);
    }

    .container {
        padding: 0 var(--space-md);
    }

    .navbar-hamburger {
        display: flex;
    }

    .navbar-nav {
        display: none;
        position: fixed;
        top: var(--navbar-height);
        right: 0;
        width: 260px;
        height: calc(100vh - var(--navbar-height));
        background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: var(--space-md) 0;
        z-index: 999;
        overflow-y: auto;
        box-shadow: -4px 0 20px rgba(0,0,0,0.2);
    }

    .navbar-nav.open {
        display: flex;
    }

    .nav-link {
        padding: 12px var(--space-lg);
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .nav-link:hover, .nav-link.active {
        background: rgba(255,255,255,0.15);
        padding-left: calc(var(--space-lg) + 4px);
    }

    /* Dropdown unutar mobilnog menija */
    .nav-dropdown {
        position: static;
    }

    .nav-dropdown-menu {
        position: static;
        display: none;
        background: rgba(0,0,0,0.15);
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-item {
        padding: 10px var(--space-lg) 10px calc(var(--space-lg) + 16px);
        border-bottom: 1px solid rgba(255,255,255,0.05);
        font-size: var(--text-sm);
    }

    .nav-logout-btn {
        margin: var(--space-md) var(--space-md) 0;
        width: calc(100% - 2 * var(--space-md));
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
}

/* ========================================
   TARIFF SEARCH RESULTS
   ======================================== */
.tariff-results {
    position: absolute;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 4px;
    width: 100%;
}

.tariff-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
    transition: background-color 0.2s;
}

.tariff-result-item:last-child {
    border-bottom: none;
}

.tariff-result-item:hover,
.tariff-result-item.highlighted {
    background-color: var(--primary-light);
    color: white;
}

.tariff-result-item.highlighted strong,
.tariff-result-item:hover strong {
    color: white;
}

.tariff-result-item strong {
    display: block;
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 4px;
}

.tariff-result-item div {
    font-size: 13px;
    color: var(--gray-700);
    margin-top: 2px;
}

.tariff-result-item:hover div {
    color: white;
}

/* Tariff action buttons (edit/hide) */
.tariff-actions {
    float: right;
    margin-left: 10px;
}

.tariff-action-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
    margin-left: 4px;
    border-radius: 3px;
    transition: all 0.2s;
    opacity: 0.7;
}

.tariff-action-btn:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.15);
}

.tariff-result-item:hover .tariff-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

/* ========================================
   WEIGHT VALIDATION STYLES
   ======================================== */
.weight-warning {
    color: var(--danger);
    font-size: 11px;
    margin-top: 2px;
    font-weight: 600;
    animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

input.error,
input[style*="border-color: rgb(220, 53, 69)"] {
    background-color: #fff5f5;
}

input:focus.error,
input:focus[style*="border-color: rgb(220, 53, 69)"] {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* ========================================
   MODAL STYLES
   ======================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 1000px;
    width: 98%;
    max-height: 98vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 32px;
    min-height: 400px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 32px;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
    border-radius: 0 0 12px 12px;
}

/* Form styles within modal */
.modal .form-group {
    margin-bottom: 20px;
}

.modal .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.modal .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.modal .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal .form-row {
    display: flex;
    gap: 12px;
}

.modal textarea.form-control {
    resize: vertical;
    font-family: inherit;
}

.modal select.form-control {
    cursor: pointer;
}

/* ============================================ */
/* R2/R8 SWAP ANIMATIONS & VISIBILITY */
/* ============================================ */

/* Animacije za swap */
@keyframes fadeSlideOut {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-20px);
    }
}

@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.rubrika.swap-out {
    animation: fadeSlideOut 0.3s ease-out forwards;
}

.rubrika.swap-in {
    animation: fadeSlideIn 0.3s ease-in forwards;
}

/* ID polja se prikazuju samo za DOMAĆE firme (clients) */
/* IMPORT: R2=companies (sakrij r2_id), R8=clients (prikaži r8_id) */
/* EXPORT: R2=clients (prikaži r2_id), R8=companies (sakrij r8_id) */

/* Default za R2: prikazan (EXPORT mode - clients) */
#r2_container .rubrika-id {
    display: flex;
}

/* IMPORT mode: sakrij r2_id (jer je R2 = companies) */
#r2_container.hide-id .rubrika-id {
    display: none;
}

/* Default za R8: sakriven (EXPORT mode - companies) */
#r8_container .rubrika-id {
    display: none;
}

/* IMPORT mode: prikaži r8_id (jer je R8 = clients) */
#r8_container.show-id .rubrika-id {
    display: flex;
}

/* ========================================
   APPEARANCE - FONT SIZE
   ======================================== */
body.font-small  { font-size: 13px; }
body.font-normal { font-size: 15px; }
body.font-large  { font-size: 17px; }

body.font-small  input, body.font-small  select, body.font-small  textarea, body.font-small  button { font-size: 12px; }
body.font-normal input, body.font-normal select, body.font-normal textarea, body.font-normal button { font-size: 14px; }
body.font-large  input, body.font-large  select, body.font-large  textarea, body.font-large  button { font-size: 16px; }

/* Sum expression tooltip (r22_iznos, r35_bruto, r38_neto) */
.sum-tooltip-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}
.sum-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 4px);
    right: 0;
    background: #1e293b;
    color: #f1f5f9;
    font-size: 12px;
    font-family: monospace;
    white-space: pre;
    padding: 6px 10px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9999;
    pointer-events: none;
    min-width: 120px;
    text-align: right;
    line-height: 1.6;
}
.sum-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 10px;
    border: 5px solid transparent;
    border-top-color: #1e293b;
}
.sum-tooltip-wrapper:hover .sum-tooltip,
.sum-tooltip-wrapper:focus-within .sum-tooltip {
    display: block;
}

/* Weight validation invalid state — red ring, no layout shift */
input.weight-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.18);
    background-color: #fff5f5;
    animation: weightInvalidPulse 1.4s ease-in-out infinite;
}
body.dark-theme input.weight-invalid {
    background-color: rgba(220, 53, 69, 0.08);
}
@keyframes weightInvalidPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.18); }
    50%      { box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.32); }
}

.r24-transaction-wrapper {
    position: relative;
}

.r24-tooltip-anchor {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    outline: none;
}

.r24-tooltip-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #93c5fd;
}

.r24-tooltip-panel {
    display: none;
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    transform: translateX(-50%);
    width: 280px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #0f172a;
    color: #e2e8f0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28);
    z-index: 9999;
    line-height: 1.45;
}

.r24-tooltip-panel::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #0f172a;
}

.r24-tooltip-anchor:hover .r24-tooltip-panel,
.r24-tooltip-anchor:focus .r24-tooltip-panel,
.r24-tooltip-anchor:focus-within .r24-tooltip-panel {
    display: block;
}

.r24-tooltip-code {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #93c5fd;
    margin-bottom: 4px;
}

.r24-tooltip-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.r24-tooltip-desc {
    font-size: 12px;
    color: #cbd5e1;
}
