/* ============================================================

   KOMPREDO — Modern Design System 2025

   Palette: Indigo/Violet primary · Teal accent · Aurora gradients

   ============================================================ */



/* ============================================================

   CSS VARIABLES

   ============================================================ */

:root {

    /* Brand colors */

    --primary: #6366f1;

    --primary-dark: #4f46e5;

    --primary-rgb: 99, 102, 241;

    --accent: #22d3ee;

    --accent-rgb: 34, 211, 238;

    --success: #10b981;

    --warning: #f59e0b;

    --danger: #f43f5e;



    /* Surfaces */

    --bg: #e0dcf8;

    --bg2: #d9d3f6;

    --card-bg: #ffffff;

    --card-bg2: rgba(255,255,255,.75);



    /* Shadows */

    --card-shadow: 0 1px 3px rgba(99,102,241,.06), 0 4px 16px rgba(99,102,241,.08);

    --card-shadow-hover: 0 8px 32px rgba(99,102,241,.18), 0 2px 8px rgba(99,102,241,.1);

    --glow: 0 0 20px rgba(99,102,241,.25);



    /* Navigation */

    --nav-bg: linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #4c1d95 100%);



    /* Text */

    --text: #1e1b4b;

    --text-muted: #6b7280;



    /* Borders */

    --border: rgba(99,102,241,.12);

    --border-solid: #e5e7eb;



    /* Misc */

    --border-radius: 14px;

    --border-radius-sm: 10px;

    --transition: .22s cubic-bezier(.4,0,.2,1);

}



[data-bs-theme="dark"] {

    --bg: #141228;

    --bg2: #1a1632;

    --card-bg: #1e1a36;

    --card-bg2: rgba(22,19,42,.85);

    --card-shadow: 0 1px 3px rgba(0,0,0,.3), 0 4px 20px rgba(0,0,0,.4);

    --card-shadow-hover: 0 8px 40px rgba(99,102,241,.25);

    --glow: 0 0 30px rgba(99,102,241,.3);

    --nav-bg: linear-gradient(135deg, #0c0a1a 0%, #1e1b4b 55%, #2d1b69 100%);

    --text: #ede9fe;

    --text-muted: #9ca3af;

    --border: rgba(99,102,241,.18);

    --border-solid: #2d2a4a;

}



/* ============================================================

   BASE

   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }



body {

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    background: var(--bg);

    color: var(--text);

    transition: background var(--transition), color var(--transition);

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    -webkit-font-smoothing: antialiased;

}



/* Subtle aurora background pattern */

body::before {

    content: '';

    position: fixed;

    inset: 0;

    background:

        radial-gradient(ellipse 80% 60% at 20% -10%, rgba(99,102,241,.09) 0%, transparent 60%),

        radial-gradient(ellipse 60% 50% at 80% 110%, rgba(34,211,238,.06) 0%, transparent 55%);

    pointer-events: none;

    z-index: 0;

}



[data-bs-theme="dark"] body::before {

    background:

        radial-gradient(ellipse 80% 60% at 20% -10%, rgba(99,102,241,.14) 0%, transparent 60%),

        radial-gradient(ellipse 60% 50% at 80% 110%, rgba(34,211,238,.08) 0%, transparent 55%);

}



main { flex: 1; }



/* ============================================================

   NAVBAR

   ============================================================ */

#mainNav {

    background: var(--nav-bg) !important;

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

    border-bottom: 1px solid rgba(255,255,255,.08);

    padding: .55rem 0;

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    width: 100%;

    z-index: 1030;

    box-shadow: 0 4px 24px rgba(0,0,0,.2);

}



#mainNav .navbar-brand {

    font-size: 1.2rem;

    font-weight: 700;

    letter-spacing: -.4px;

    color: #fff !important;

    gap: .6rem;

}



#mainNav .brand-icon {

    width: 32px; height: 32px;

    background: linear-gradient(135deg, rgba(255,255,255,.3), rgba(255,255,255,.1));

    border: 1px solid rgba(255,255,255,.2);

    border-radius: 9px;

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

    font-size: .95rem;

    box-shadow: 0 2px 8px rgba(0,0,0,.2);

    backdrop-filter: blur(4px);

}



#mainNav .nav-link {

    color: rgba(255,255,255,.75) !important;

    font-weight: 500;

    font-size: .85rem;

    padding: .38rem .8rem;

    border-radius: 8px;

    transition: background var(--transition), color var(--transition);

    letter-spacing: .01em;

}



#mainNav .nav-link:hover,

#mainNav .nav-link.active {

    color: #fff !important;

    background: rgba(255,255,255,.14);

}



#mainNav .nav-link.active {

    background: rgba(255,255,255,.18);

    font-weight: 600;

}



#mainNav .navbar-toggler {

    border: 1px solid rgba(255,255,255,.2);

    color: rgba(255,255,255,.9);

    padding: .3rem .5rem;

    border-radius: 8px;

}

#mainNav .navbar-toggler:focus { box-shadow: none; }



/* Light theme: hamburger icon is dark by default in Bootstrap — override to white */

[data-bs-theme="light"] #mainNav .navbar-toggler {

    border: 2px solid rgba(255,255,255,.7);

    background: rgba(255,255,255,.18);

    box-shadow: 0 0 0 3px rgba(255,255,255,.12);

}

[data-bs-theme="light"] #mainNav .navbar-toggler:hover {

    background: rgba(255,255,255,.28);

    border-color: rgba(255,255,255,.9);

}

[data-bs-theme="light"] #mainNav .navbar-toggler .navbar-toggler-icon {

    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");

}



.theme-btn {

    background: rgba(255,255,255,.12);

    border: 1px solid rgba(255,255,255,.2);

    color: #fff !important;

    border-radius: 8px;

    width: 33px; height: 33px;

    padding: 0;

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

    transition: background var(--transition), transform var(--transition);

    font-size: .9rem;

}

.theme-btn:hover {

    background: rgba(255,255,255,.25);

    transform: rotate(20deg);

}



@media (max-width: 768px) {

    #mainNav .navbar-collapse {

        background: rgba(15,12,35,.92);

        backdrop-filter: blur(20px);

        border-radius: 0 0 14px 14px;

        padding: .6rem .5rem;

        margin-top: .4rem;

        border: 1px solid rgba(255,255,255,.08);

        border-top: none;

    }

}



/* ============================================================

   CARDS

   ============================================================ */

.card {

    background: var(--card-bg);

    border-radius: var(--border-radius) !important;

    box-shadow: var(--card-shadow);

    border: 1px solid var(--border) !important;

    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);

    position: relative;

}



/* Only hero-card needs overflow:hidden (gradient bleeds to corners + ::after glow) */

.hero-card {

    overflow: hidden;

}



.hover-lift:hover {

    box-shadow: var(--card-shadow-hover);

    transform: translateY(-4px);

    border-color: rgba(99,102,241,.25) !important;

}



.card-header {

    background: var(--card-bg) !important;

    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;

    font-weight: 600;

    font-size: .88rem;

    border-bottom-color: var(--border) !important;

}



/* Shimmer top edge on hover — disabled */

.hover-lift::before { display: none; }



/* ============================================================

   HERO (Dashboard)

   ============================================================ */

.hero-card {

    background: linear-gradient(135deg, #ede9fe 0%, #e0f2fe 100%) !important;

    border: 1px solid rgba(99,102,241,.15) !important;

    overflow: hidden;

}



.hero-card::after {

    content: '';

    position: absolute;

    top: -40px; right: -40px;

    width: 220px; height: 220px;

    background: radial-gradient(circle, rgba(99,102,241,.12), transparent 70%);

    border-radius: 50%;

    pointer-events: none;

}



[data-bs-theme="dark"] .hero-card {

    background: linear-gradient(135deg, #1e1538 0%, #0d1a2e 100%) !important;

    border-color: rgba(99,102,241,.2) !important;

}



.hero-icon {

    font-size: 5rem;

    background: linear-gradient(135deg, var(--primary), var(--accent));

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

    opacity: .25;

    line-height: 1;

}



/* Gradient heading text */

.gradient-text {

    background: linear-gradient(135deg, var(--primary-dark), var(--accent));

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

}



/* Stats */

.stat-card { cursor: pointer; }

.stat-card:hover { border-color: rgba(99,102,241,.3) !important; }



.stat-icon {

    width: 52px; height: 52px;

    border-radius: 15px;

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

    font-size: 1.45rem;

    margin: 0 auto;

    position: relative;

}

.stat-icon::after {

    content: '';

    position: absolute;

    inset: 0;

    border-radius: inherit;

    background: inherit;

    filter: blur(8px);

    opacity: .35;

    z-index: -1;

    transform: translateY(4px) scale(.9);

}



.stat-number {

    font-size: 2rem;

    font-weight: 800;

    line-height: 1.1;

    background: linear-gradient(135deg, var(--primary-dark), var(--primary));

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

}

.stat-label { font-size: .78rem; color: var(--text-muted); font-weight: 500; }



/* Step tips */

.step-tip {

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

    font-size: .84rem;

}

.step-num {

    min-width: 24px; height: 24px;

    background: linear-gradient(135deg, var(--primary), var(--accent));

    color: #fff;

    border-radius: 50%;

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

    font-size: .72rem; font-weight: 700;

    flex-shrink: 0;

    box-shadow: 0 2px 8px rgba(99,102,241,.4);

}



/* Status dot */

.status-dot {

    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;

    position: relative;

}

.status-dot::after {

    content: '';

    position: absolute;

    inset: -2px;

    border-radius: 50%;

    background: inherit;

    opacity: .35;

    animation: statusPulse 2s ease-in-out infinite;

}

@keyframes statusPulse {

    0%, 100% { transform: scale(1); opacity: .35; }

    50% { transform: scale(1.6); opacity: 0; }

}



/* ============================================================

   PRICE BASE CARDS

   ============================================================ */

.base-icon {

    width: 42px; height: 42px;

    background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(34,211,238,.1));

    border-radius: 12px;

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

    font-size: 1.2rem;

    border: 1px solid rgba(99,102,241,.15);

}



/* ============================================================

   COMPANY CARDS

   ============================================================ */

.company-card-header {

    height: 68px;

    border-radius: var(--border-radius) var(--border-radius) 0 0;

    position: relative;

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

    padding: 0 1rem;

    overflow: hidden;

}



.company-card-header::after {

    content: '';

    position: absolute;

    bottom: -20px; right: -20px;

    width: 80px; height: 80px;

    background: rgba(255,255,255,.1);

    border-radius: 50%;

}



.company-logo-wrap {

    padding: 0 1rem;

    margin-top: -26px;

    position: relative;

    z-index: 1;

}



.company-logo-img {

    width: 52px; height: 52px;

    object-fit: contain;

    border-radius: 12px;

    background: var(--bg);

    border: 2px solid var(--bg);

    box-shadow: 0 4px 12px rgba(0,0,0,.15);

}



.company-logo-placeholder {

    width: 52px; height: 52px;

    background: #fff;

    border-radius: 12px;

    border: 2px solid rgba(255,255,255,.9);

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

    font-size: 1.4rem;

    box-shadow: 0 4px 12px rgba(0,0,0,.15);

}



/* ============================================================

   COMPANY FORM

   ============================================================ */

.logo-drop-area {

    border: 2px dashed var(--border-solid);

    border-radius: var(--border-radius);

    padding: 1.75rem;

    text-align: center;

    cursor: pointer;

    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);

    background: var(--bg);

}

.logo-drop-area:hover, .logo-drop-area.drag-over {

    border-color: var(--primary);

    background: rgba(99,102,241,.04);

    box-shadow: 0 0 0 4px rgba(99,102,241,.08);

}



.kp-preview-header {

    min-height: 80px;

    transition: background var(--transition);

}



.kp-logo-ph {

    width: 60px; height: 44px;

    background: rgba(255,255,255,.15);

    border-radius: 8px;

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

}



/* ============================================================

   CALCULATOR

   ============================================================ */

.catalog-cat-header {

    background: var(--bg);

    padding: .3rem .65rem;

    font-size: .7rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .7px;

    color: var(--primary);

    border-bottom: 1px solid var(--border);

    position: sticky;

    top: 0;

    z-index: 1;

}



.catalog-item {

    display: flex;

    align-items: center;

    gap: .5rem;

    padding: .55rem .65rem;

    border-bottom: 1px solid var(--border);

    transition: background var(--transition);

    cursor: default;

}

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

.catalog-item:hover { background: rgba(99,102,241,.05); }



.catalog-item-body { flex: 1; min-width: 0; }

.catalog-item-name { font-size: .82rem; line-height: 1.3; }

.catalog-item-meta { display: flex; gap: .5rem; font-size: .72rem; margin-top: 2px; }



.btn-add-to-estimate {

    width: 28px; height: 28px; padding: 0;

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

    border-radius: 8px;

    background: rgba(99,102,241,.1);

    border: 1px solid rgba(99,102,241,.15);

    color: var(--primary);

    font-size: .85rem;

    flex-shrink: 0;

    transition: all var(--transition);

}

.btn-add-to-estimate:hover {

    background: linear-gradient(135deg, var(--primary), var(--primary-dark));

    border-color: transparent;

    color: #fff;

    transform: scale(1.12) rotate(3deg);

    box-shadow: 0 4px 12px rgba(99,102,241,.4);

}

.btn-add-to-estimate.added {

    background: linear-gradient(135deg, var(--success), #059669);

    border-color: transparent;

    color: #fff;

    transform: scale(1.2);

}



/* Estimate table */

#estimateTable .form-check-input { cursor: pointer; }

.qty-input { text-align: center; }



/* Row highlight animation */

@keyframes rowFlash {

    0%, 100% { background: transparent; }

    30% { background: rgba(99,102,241,.1); }

}

.row-highlight { animation: rowFlash .9s ease; }



/* ============================================================

   EMPTY STATE

   ============================================================ */

.empty-state {

    text-align: center;

    padding: 4rem 2rem;

}

.empty-state i {

    font-size: 4rem;

    opacity: .12;

    display: block;

    margin-bottom: 1rem;

}

.empty-state h4 { font-weight: 700; margin-bottom: .5rem; }



/* ============================================================

   TABLES

   ============================================================ */

.table th {

    font-size: .72rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .5px;

    color: var(--primary);

    border-bottom: 2px solid var(--border) !important;

    background: var(--card-bg) !important;

    white-space: nowrap;

    opacity: .75;

}



.table td { border-color: var(--border) !important; vertical-align: middle; }

.table tbody tr { transition: background var(--transition); }

.table-hover tbody tr:hover { background: rgba(99,102,241,.04); }



/* ============================================================

   BUTTONS

   ============================================================ */

.btn {

    border-radius: 10px;

    font-weight: 500;

    font-size: .875rem;

    transition: all var(--transition);

    letter-spacing: .01em;

}

.btn:active { transform: scale(.96); }

.btn-lg { border-radius: 12px; font-size: 1rem; }

.btn-sm { border-radius: 8px; font-size: .8rem; }



/* Primary gradient button */

.btn-primary {

    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);

    border: none;

    box-shadow: 0 2px 10px rgba(99,102,241,.35);

}

.btn-primary:hover {

    background: linear-gradient(135deg, #7c3aed 0%, var(--primary) 100%);

    box-shadow: 0 4px 18px rgba(99,102,241,.5);

    transform: translateY(-1px);

}

.btn-primary:active { box-shadow: none; transform: translateY(0); }



.btn-outline-primary {

    border-color: rgba(99,102,241,.5);

    color: var(--primary);

}

.btn-outline-primary:hover {

    background: rgba(99,102,241,.08);

    border-color: var(--primary);

    color: var(--primary);

}



.btn-outline-secondary {

    border-color: var(--border-solid);

    color: var(--text-muted);

}

.btn-outline-secondary:hover {

    background: var(--bg);

    border-color: rgba(99,102,241,.3);

    color: var(--text);

}



.btn-ghost {

    background: transparent;

    border: none;

    color: var(--text-muted);

    padding: .25rem .4rem;

    border-radius: 8px;

}

.btn-ghost:hover { background: var(--border); color: var(--text); }



/* ============================================================

   FORM CONTROLS

   ============================================================ */

.form-control, .form-select {

    border-radius: 10px;

    border-color: var(--border-solid);

    background: var(--card-bg);

    color: var(--text);

    font-size: .875rem;

    transition: border-color var(--transition), box-shadow var(--transition);

}

.form-control:focus, .form-select:focus {

    border-color: var(--primary);

    box-shadow: 0 0 0 3.5px rgba(99,102,241,.15);

    background: var(--card-bg);

    color: var(--text);

}



.input-group-text {

    border-color: var(--border-solid);

    background: var(--bg);

    font-size: .875rem;

    color: var(--text-muted);

    border-radius: 10px;

}



.form-check-input:checked {

    background-color: var(--primary);

    border-color: var(--primary);

}

.form-switch .form-check-input:checked {

    background-color: var(--primary);

    border-color: var(--primary);

    box-shadow: 0 0 8px rgba(99,102,241,.4);

}

.form-switch .form-check-input:focus {

    box-shadow: 0 0 0 3px rgba(99,102,241,.15);

}



/* ============================================================

   BADGES & ALERTS

   ============================================================ */

.badge {

    border-radius: 20px;

    font-weight: 600;

    font-size: .72rem;

    letter-spacing: .02em;

    padding: .3em .7em;

}



.badge.bg-primary-subtle {

    background: rgba(99,102,241,.12) !important;

    color: var(--primary-dark) !important;

}

[data-bs-theme="dark"] .badge.bg-primary-subtle {

    background: rgba(99,102,241,.2) !important;

    color: #a5b4fc !important;

}



.alert {

    border-radius: var(--border-radius);

    font-size: .875rem;

    border-width: 1px;

}



/* ============================================================

   MODALS

   ============================================================ */

.modal-content {

    border-radius: 18px !important;

    overflow: hidden;

    background: var(--card-bg);

    border: 1px solid var(--border) !important;

    box-shadow: 0 20px 60px rgba(0,0,0,.2), 0 0 0 1px rgba(99,102,241,.1);

}

.modal-header {

    padding: 1.3rem 1.5rem .7rem;

    border-bottom-color: var(--border) !important;

}

.modal-body { padding: .8rem 1.5rem; }

.modal-footer {

    padding: .7rem 1.5rem 1.3rem;

    border-top-color: var(--border) !important;

}



/* ============================================================

   FOOTER

   ============================================================ */

.footer {

    background: var(--card-bg) !important;

    border-top: 1px solid var(--border) !important;

    margin-top: auto;

    position: relative;

    z-index: 1;

}



/* ============================================================

   BREADCRUMB

   ============================================================ */

.breadcrumb { font-size: .8rem; }

.breadcrumb-item a {

    color: var(--primary);

    text-decoration: none;

    opacity: .8;

}

.breadcrumb-item a:hover { opacity: 1; text-decoration: underline; }

.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }



/* ============================================================

   ANIMATIONS

   ============================================================ */

@keyframes fadeIn {

    from { opacity: 0; transform: translateY(14px); }

    to   { opacity: 1; transform: translateY(0); }

}



.animate-fadein {

    animation: fadeIn .38s cubic-bezier(.4,0,.2,1) both;

}



@keyframes shimmer {

    from { background-position: -200% center; }

    to   { background-position: 200% center; }

}



/* ============================================================

   SCROLLBAR (Webkit)

   ============================================================ */

::-webkit-scrollbar { width: 5px; height: 5px; }

::-webkit-scrollbar-track { background: transparent; }

::-webkit-scrollbar-thumb {

    background: rgba(99,102,241,.25);

    border-radius: 3px;

}

::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,.5); }



/* ============================================================

   DARK MODE OVERRIDES

   ============================================================ */

[data-bs-theme="dark"] .card { border-color: var(--border) !important; }

[data-bs-theme="dark"] .table th { background: var(--card-bg) !important; }

[data-bs-theme="dark"] .catalog-cat-header { background: #100e22; }

[data-bs-theme="dark"] .catalog-item:hover { background: rgba(99,102,241,.07); }

[data-bs-theme="dark"] .logo-drop-area { border-color: var(--border-solid); background: var(--bg); }

[data-bs-theme="dark"] .modal-content { background: #1c1830; }

[data-bs-theme="dark"] .form-control,

[data-bs-theme="dark"] .form-select {

    background: #130f2a;

    border-color: #2d2a4a;

    color: #ede9fe;

}

[data-bs-theme="dark"] .form-control:focus,

[data-bs-theme="dark"] .form-select:focus {

    background: #1c1830;

    border-color: var(--primary);

}

[data-bs-theme="dark"] .input-group-text {

    background: #0d0b1e;

    border-color: #2d2a4a;

}

[data-bs-theme="dark"] .company-logo-img,

[data-bs-theme="dark"] .company-logo-placeholder { background: #2d2a4a; }

[data-bs-theme="light"] .btn-outline-secondary,

[data-bs-theme="light"] .btn-outline-info,

[data-bs-theme="light"] .btn-outline-warning {

    background-color: #ffffff;

}



[data-bs-theme="dark"] .btn-outline-secondary {

    border-color: #2d2a4a;

    color: #9ca3af;

}

[data-bs-theme="dark"] .btn-outline-secondary:hover {

    background: #16132a;

    color: #ede9fe;

    border-color: rgba(99,102,241,.4);

}

[data-bs-theme="dark"] .table-light { --bs-table-bg: #100e22; }

[data-bs-theme="dark"] .table-hover tbody tr:hover { background: rgba(99,102,241,.07); }



/* ============================================================

   RESPONSIVE

   ============================================================ */

@media (max-width: 576px) {

    .stat-number { font-size: 1.6rem; }

    .hero-card h1 { font-size: 1.35rem; }

    .empty-state i { font-size: 3rem; }

    .table-responsive { font-size: .8rem; }

    .btn-lg { font-size: .9rem; }

    :root { --border-radius: 12px; }

}



/* ============================================================

   LAYOUT PRESET CARDS (company header constructor)

   ============================================================ */

.layout-preset-card {

    border: 2px solid var(--border);

    border-radius: 10px;

    padding: 8px;

    cursor: pointer;

    transition: border-color .2s, box-shadow .2s, transform .15s;

    background: var(--card-bg);

    user-select: none;

}

.layout-preset-card:hover {

    border-color: var(--primary);

    transform: translateY(-2px);

    box-shadow: 0 4px 14px rgba(99,102,241,.18);

}

.layout-preset-card.selected {

    border-color: var(--primary);

    box-shadow: 0 0 0 3px rgba(99,102,241,.22);

}

.lp-label {

    text-align: center;

    font-size: .7rem;

    font-weight: 600;

    margin-top: 5px;

    color: var(--text-muted);

}

.layout-preset-card.selected .lp-label { color: var(--primary); }



/* thumb container */

.lp-thumb {

    border-radius: 6px;

    overflow: hidden;

    background: var(--bg);

    border: 1px solid var(--border);

    min-height: 58px;

    padding: 4px;

}



/* shared bar */

.lp-bar {

    background: var(--primary);

    border-radius: 4px;

    height: 22px;

    display: flex;

    align-items: center;

    gap: 4px;

    padding: 0 4px;

}

.lp-bar-centered {

    flex-direction: column;

    height: auto;

    padding: 4px;

    gap: 2px;

    align-items: center;

}



/* logo box */

.lp-logo-box {

    width: 14px; height: 14px;

    border-radius: 3px;

    background: rgba(255,255,255,.35);

    flex-shrink: 0;

}

.lp-logo-box-center {

    width: 16px; height: 10px;

    border-radius: 3px;

    background: rgba(255,255,255,.35);

}

.lp-title-box {

    flex: 1;

    height: 5px;

    border-radius: 3px;

    background: rgba(255,255,255,.7);

}

.lp-title-box-wide {

    width: 60%;

    height: 5px;

    border-radius: 3px;

    background: rgba(255,255,255,.8);

}

.lp-date-box {

    width: 16px; height: 4px;

    border-radius: 2px;

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

}

.lp-date-box-sm {

    width: 30%;

    height: 3px;

    border-radius: 2px;

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

}



/* content lines */

.lp-lines {

    padding: 4px 2px 2px;

    display: flex;

    flex-direction: column;

    gap: 3px;

}

.lp-lines div {

    height: 3px;

    border-radius: 2px;

    background: var(--border);

}

.lp-lines div:nth-child(1) { width: 100%; }

.lp-lines div:nth-child(2) { width: 80%; }

.lp-lines div:nth-child(3) { width: 60%; }



/* minimal layout thumb */

.lp-accent-line {

    height: 3px;

    background: var(--primary);

    border-radius: 2px;

    margin-bottom: 3px;

}

.lp-text-header {

    padding: 3px 2px;

    display: flex;

    flex-direction: column;

    gap: 2px;

}

.lp-name-text {

    height: 5px; width: 70%;

    border-radius: 2px;

    background: var(--primary);

    opacity: .7;

}

.lp-sub-text {

    height: 3px; width: 55%;

    border-radius: 2px;

    background: var(--border);

}

.lp-title-text {

    height: 5px; width: 85%;

    border-radius: 2px;

    background: var(--text-muted);

    opacity: .5;

    margin-top: 2px;

}



/* split layout thumb */

.lp-split-row {

    display: flex;

    border-radius: 4px;

    overflow: hidden;

    height: 26px;

    border: 1px solid var(--border);

}

.lp-split-left {

    background: var(--primary);

    width: 35%;

    display: flex;

    align-items: center;

    justify-content: center;

}

.lp-split-right {

    flex: 1;

    padding: 0 4px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 3px;

    background: var(--card-bg);

}



/* ============================================================

   LIST GROUP — theme-aware overrides

   ============================================================ */

.list-group-item {

    background-color: var(--card-bg);

    border-color: var(--border);

    color: var(--text);

}

.list-group-item-action:hover,

.list-group-item-action:focus {

    background-color: var(--bg2);

    color: var(--text);

}

.list-group-flush > .list-group-item {

    border-right: 0;

    border-left: 0;

}



/* globalTaxControls — stronger section dividers */

#globalTaxControls .border-top {

    border-top: 1px solid #c9cacc !important;

}

[data-bs-theme="dark"] #globalTaxControls .border-top {

    border-top: 1px solid rgba(99,102,241,.25) !important;

}



/* estimate table model column — hidden until .show-model is toggled */

#estimateTable .model-col { display: none; }

#estimateTable.show-model .model-col { display: table-cell; }



/* Amber outline button */

.btn-outline-amber {

    color: #ffc107;

    border-color: #ffc107;

    background: #fff;

    transition: all var(--transition);

}

.btn-outline-amber:hover, .btn-outline-amber:focus {

    background: #ffc107;

    border-color: #ffc107;

    color: #212529;

    transform: translateY(-1px);

}

.btn-outline-amber:active { transform: translateY(0); box-shadow: none; }

[data-bs-theme="dark"] .btn-outline-amber { background: transparent; color: #ffc107; border-color: #ffc107; }

[data-bs-theme="dark"] .btn-outline-amber:hover { background: #ffc107; color: #212529; }



/* Excel outline button — green */

.btn-outline-excel {

    color: var(--success);

    border-color: var(--success);

    background: #fff;

    transition: all var(--transition);

}

.btn-outline-excel:hover, .btn-outline-excel:focus {

    background: var(--success);

    border-color: var(--success);

    color: #fff;

    transform: translateY(-1px);

}

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

.btn-outline-excel .bi-file-earmark-excel {

    filter: drop-shadow(0 0 4px rgba(16,185,129,.7)) drop-shadow(0 0 8px rgba(16,185,129,.4));

    transition: filter var(--transition);

}

.btn-outline-excel:hover .bi-file-earmark-excel {

    filter: drop-shadow(0 0 6px rgba(16,185,129,1)) drop-shadow(0 0 14px rgba(16,185,129,.8));

}

[data-bs-theme="dark"] .btn-outline-excel { background: transparent; }

[data-bs-theme="dark"] .btn-outline-excel:hover { background: var(--success); color: #fff; }



/* КП button — dynamic green */

@keyframes kpPulse {

    0%, 100% { box-shadow: 0 2px 12px rgba(16,185,129,.45); }

    50%       { box-shadow: 0 4px 22px rgba(16,185,129,.75), 0 0 0 4px rgba(16,185,129,.15); }

}

.btn-kp {

    background: linear-gradient(135deg, #10b981 0%, #059669 100%);

    border: none;

    color: #fff;

    font-weight: 600;

    letter-spacing: .02em;

    box-shadow: 0 2px 12px rgba(16,185,129,.45);

    animation: kpPulse 2.2s ease-in-out infinite;

    transition: all var(--transition);

}

.btn-kp:hover, .btn-kp:focus {

    background: linear-gradient(135deg, #059669 0%, #047857 100%);

    color: #fff;

    transform: translateY(-2px) scale(1.03);

    box-shadow: 0 6px 24px rgba(16,185,129,.6);

    animation: none;

}

.btn-kp:active { transform: translateY(0) scale(.98); box-shadow: none; animation: none; }



/* grandTotal — dark theme override */

[data-bs-theme="dark"] #grandTotal {

    color: #fff !important;

    background: rgba(99,102,241,.3) !important;

    border-color: rgba(99,102,241,.55) !important;

}



/* estimate table note column — hidden until .show-note is toggled */

#estimateTable .note-col { display: none; }

#estimateTable.show-note .note-col { display: table-cell; }



/* model column */

#estimateTable .model-col { display: none; }

#estimateTable.show-model .model-col { display: table-cell; }



/* ── Estimate Table — Modern Design ───────────────────────── */



/* Row entrance */

@keyframes rowIn {

    from { opacity: 0; transform: translateY(-8px); }

    50%  { opacity: .7; }

    to   { opacity: 1; transform: translateY(0); }

}

/* Total flash */

@keyframes totalFlash {

    0%   { background: rgba(99,102,241,.22); }

    100% { background: transparent; }

}

/* Row highlight pulse */

@keyframes rowHL {

    0%,100% { background: transparent; }

    30%     { background: rgba(99,102,241,.14); }

}



/* Table wrapper */

#estimateTableWrap {

    border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);

    overflow: hidden;

    background: linear-gradient(160deg, rgba(99,102,241,.04) 0%, rgba(34,211,238,.02) 100%);

}

[data-bs-theme="dark"] #estimateTableWrap {

    background: linear-gradient(160deg, rgba(99,102,241,.08) 0%, rgba(34,211,238,.03) 100%);

}



#estimateTable {

    border-collapse: collapse;

    font-size: .82rem;

    width: 100%;

    --bs-table-bg: transparent;

    --bs-table-striped-bg: transparent;

    --bs-table-hover-bg: transparent;

    --bs-table-active-bg: transparent;

    --bs-table-border-color: transparent;

}



/* ── Sticky header with glass */

#estimateTable thead {

    position: sticky;

    top: 0;

    z-index: 5;

}

#estimateTable thead th {

    font-size: .68rem;

    font-weight: 600;

    letter-spacing: .08em;

    text-transform: uppercase;

    border: none;

    padding: .65rem .75rem;

    white-space: nowrap;

}

#estimateTable thead th:first-child { border-radius: 0; }

#estimateTable thead th:last-child  { border-radius: 0; }



/* Light theme — gradient header */

[data-bs-theme="light"] #estimateTable thead tr {

    background: linear-gradient(135deg, #c7d2fe 0%, #ddd6fe 50%, #e0e7ff 100%) !important;

}

[data-bs-theme="light"] #estimateTable thead th {

    background: transparent !important;

    box-shadow: none !important;

    color: #312e81 !important;

    text-shadow: none;

    border-bottom: 2px solid rgba(99,102,241,.2) !important;

}



/* Dark theme — gradient header */

[data-bs-theme="dark"] #estimateTable thead tr {

    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%) !important;

}

[data-bs-theme="dark"] #estimateTable thead th {

    background: transparent !important;

    box-shadow: none !important;

    color: #c7d2fe !important;

    text-shadow: none;

    border-bottom: 2px solid rgba(129,140,248,.25) !important;

}



/* ── Group header rows */

#estimateTable .estimate-group-hdr td {

    position: relative;

    padding: .38rem .85rem .38rem 1.2rem;

    font-size: .67rem;

    font-weight: 700;

    letter-spacing: .12em;

    text-transform: uppercase;

    color: var(--primary);

    background: linear-gradient(90deg, rgba(99,102,241,.09) 0%, rgba(99,102,241,.02) 100%);

    border-top: 1.5px solid rgba(99,102,241,.18);

    border-bottom: 1px solid rgba(99,102,241,.1);

}

#estimateTable .estimate-group-hdr td::before {

    content: '';

    position: absolute;

    left: 0; top: 0; bottom: 0;

    width: 3px;

    background: linear-gradient(180deg, var(--primary), var(--accent));

    border-radius: 0 2px 2px 0;

}



/* ── Data rows */

#estimateTable tbody tr.animate-fadein {

    animation: rowIn .32s cubic-bezier(0.22,1,0.36,1) both;

}

#estimateTable tbody tr:not(.estimate-group-hdr) {

    border-bottom: 1px solid rgba(99,102,241,.07);

    background: transparent;

    transition: background .25s ease, box-shadow .25s ease;

}

#estimateTable tbody tr:not(.estimate-group-hdr):nth-child(odd) {

    background: rgba(99,102,241,.025);

}

#estimateTable tbody tr:not(.estimate-group-hdr):hover {

    background: rgba(99,102,241,.055) !important;

    box-shadow: inset 3px 0 0 var(--primary);

}

#estimateTable tbody tr.row-highlight {

    animation: rowHL .8s ease;

}



/* ── Cells */

#estimateTable td {

    padding: .45rem .75rem;

    vertical-align: middle;

}



/* ── Inputs — ghost style */

#estimateTable .qty-input,

#estimateTable .price-input,

#estimateTable .note-input,

#estimateTable .name-input,

#estimateTable .model-input {

    background: transparent;

    border: 1px solid transparent;

    border-radius: 7px;

    font-size: .8rem;

    transition: border-color .15s, background .15s, box-shadow .15s;

    color: inherit;

}

#estimateTable .name-input {

    overflow-wrap: break-word;

    word-break: break-word;

    resize: none;

    field-sizing: content;

    min-height: 1.8em;

    line-height: 1.4;

    width: 100%;

}

#estimateTable td:nth-child(2) {

    width: 100%;

}

#estimateTable .qty-input:hover,

#estimateTable .price-input:hover,

#estimateTable .note-input:hover,

#estimateTable .name-input:hover,

#estimateTable .model-input:hover {

    border-color: rgba(99,102,241,.28);

    background: rgba(99,102,241,.04);

}

#estimateTable .qty-input:focus,

#estimateTable .price-input:focus,

#estimateTable .note-input:focus,

#estimateTable .name-input:focus,

#estimateTable .model-input:focus {

    background: var(--card-bg);

    border-color: var(--primary);

    box-shadow: 0 0 0 2.5px rgba(99,102,241,.18);

    outline: none;

}



/* ── Total cell */

#estimateTable .row-total-cell {

    color: var(--primary-dark);

    font-size: .84rem;

    font-weight: 700;

    white-space: nowrap;

    letter-spacing: -.01em;

    transition: background .3s;

}

#estimateTable .row-total-cell.flash {

    animation: totalFlash .5s ease;

    border-radius: 5px;

}



/* ── Delete button — ghost, visible on row hover */

#estimateTable .btn-del {

    opacity: 0;

    transform: scale(.85);

    transition: opacity .15s, transform .15s, color .15s;

    border-radius: 7px !important;

}

#estimateTable tr:hover .btn-del {

    opacity: 1;

    transform: scale(1);

}

#estimateTable .btn-del:hover {

    color: #f43f5e !important;

    background: rgba(244,63,94,.1) !important;

    border-color: transparent !important;

}

/* Always visible on mobile */

@media (max-width: 768px) {

    #estimateTable .btn-del {

        opacity: 1 !important;

        transform: scale(1) !important;

    }

}



/* ── Effective price hint */

#estimateTable .effective-price {

    display: block;

    font-size: .7rem;

    color: var(--success);

    margin-top: 1px;

    font-weight: 500;

}



/* ── Estimate Card — light theme */

:root #estimateCard,

[data-bs-theme="light"] #estimateCard {

    background: linear-gradient(150deg, #f4f2fd 0%, #ede9fe 45%, #eef4ff 100%) !important;

    box-shadow: 0 4px 28px rgba(99,102,241,.12), 0 1px 4px rgba(99,102,241,.06);

    border-radius: var(--border-radius) !important;

    overflow: hidden;

}



/* ── Estimate Card — dark theme */

[data-bs-theme="dark"] #estimateCard {

    background: linear-gradient(150deg, #130f28 0%, #1a1636 50%, #0f1623 100%) !important;

    box-shadow: 0 4px 32px rgba(0,0,0,.45), 0 0 0 1px rgba(99,102,241,.15);

    border-radius: var(--border-radius) !important;

    overflow: hidden;

}



/* ── Card header */

#estimateCardHeader {

    padding: .85rem 1.1rem;

    position: relative;

    overflow: hidden;

}

:root #estimateCardHeader,

[data-bs-theme="light"] #estimateCardHeader {

    background: linear-gradient(135deg, rgba(99,102,241,.12) 0%, rgba(34,211,238,.06) 100%);

    border-bottom: 1px solid rgba(99,102,241,.15);

}

[data-bs-theme="dark"] #estimateCardHeader {

    background: linear-gradient(135deg, rgba(99,102,241,.2) 0%, rgba(34,211,238,.07) 100%);

    border-bottom: 1px solid rgba(99,102,241,.22);

}

#estimateCardHeader h5 {

    font-size: .95rem;

    letter-spacing: -.01em;

}



/* Header icon pill */

.estimate-hdr-icon {

    width: 32px; height: 32px;

    border-radius: 9px;

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

    font-size: .95rem;

    flex-shrink: 0;

}

:root .estimate-hdr-icon,

[data-bs-theme="light"] .estimate-hdr-icon {

    background: linear-gradient(135deg, var(--primary), var(--primary-dark));

    color: #fff;

    box-shadow: 0 2px 10px rgba(99,102,241,.4);

}

[data-bs-theme="dark"] .estimate-hdr-icon {

    background: linear-gradient(135deg, #4f46e5, #3730a3);

    color: #fff;

    box-shadow: 0 2px 12px rgba(99,102,241,.5);

}



/* Count badge */

#itemsCountBadge {

    font-size: .7rem;

    font-weight: 600;

    padding: .28em .65em;

    border-radius: 20px;

}

:root #itemsCountBadge,

[data-bs-theme="light"] #itemsCountBadge {

    background: rgba(99,102,241,.12);

    color: var(--primary);

}

[data-bs-theme="dark"] #itemsCountBadge {

    background: rgba(99,102,241,.25);

    color: #a5b4fc;

}



/* Clear button */

#clearBtn {

    width: 32px; height: 32px;

    padding: 0;

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

    border-radius: 9px;

    font-size: .85rem;

    transition: all .15s;

}

:root #clearBtn, [data-bs-theme="light"] #clearBtn {

    background: rgba(244,63,94,.08);

    color: #f43f5e;

    border: 1px solid rgba(244,63,94,.18);

}

:root #clearBtn:hover, [data-bs-theme="light"] #clearBtn:hover {

    background: rgba(244,63,94,.15);

    border-color: rgba(244,63,94,.35);

}

[data-bs-theme="dark"] #clearBtn {

    background: rgba(244,63,94,.1);

    color: #fb7185;

    border: 1px solid rgba(244,63,94,.2);

}

[data-bs-theme="dark"] #clearBtn:hover {

    background: rgba(244,63,94,.2);

}

#clearBtn:disabled { opacity: .3; pointer-events: none; }



/* ── Table wrapper — transparent so card gradient shows */

#estimateTableWrap {

    background: transparent !important;

}



/* ── Drag handle column */

#estimateTable .drag-col {

    width: 28px;

    padding: 0 4px;

    text-align: center;

}

#estimateTable thead th.drag-col {

    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);

}

.drag-handle {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 22px; height: 22px;

    border-radius: 5px;

    cursor: grab;

    opacity: 0;

    transition: opacity .25s ease, background .2s ease, transform .2s ease;

    font-size: .85rem;

    color: var(--text-muted);

}

#estimateTable tr:hover .drag-handle { opacity: .6; }

#estimateTable tr:hover .drag-handle:hover { opacity: 1; transform: scale(1.15); }

.drag-handle:active { cursor: grabbing; }

:root .drag-handle:hover,

[data-bs-theme="light"] .drag-handle:hover {

    background: rgba(99,102,241,.12);

    color: var(--primary);

}

[data-bs-theme="dark"] .drag-handle:hover {

    background: rgba(99,102,241,.2);

    color: #a5b4fc;

}



/* ── Mobile arrow buttons — hidden on desktop, shown ≤767px */

.mobile-arrows { display: none; }

@media (max-width: 767.98px) {

    .drag-handle { display: none !important; }

    .mobile-arrows {

        display: flex;

        flex-direction: column;

        gap: 0;

        align-items: center;

    }

    .arr-btn {

        border: none;

        background: transparent;

        padding: 1px 3px;

        line-height: 1;

        font-size: .6rem;

        color: var(--text-muted);

        cursor: pointer;

        border-radius: 4px;

        transition: color .15s, background .15s;

    }

    .arr-btn:hover, .arr-btn:active {

        color: var(--primary);

        background: rgba(99,102,241,.12);

    }

    [data-bs-theme="dark"] .arr-btn:hover,

    [data-bs-theme="dark"] .arr-btn:active {

        color: #a5b4fc;

        background: rgba(99,102,241,.2);

    }

    #estimateTable .drag-col { width: 24px; padding: 0 2px; }

    /* Disable native drag on mobile */

    #estimateTable tr[draggable] { -webkit-user-drag: none; }

}



/* ── Drop landing animation — no opacity change to avoid invisible flash */

@keyframes rowDrop {

    0%   { background: rgba(99,102,241,.2); box-shadow: inset 3px 0 0 var(--primary); }

    50%  { background: rgba(99,102,241,.08); }

    100% { background: transparent; box-shadow: none; }

}

#estimateTable tr.row-dropped {

    animation: rowDrop 0.45s cubic-bezier(0.22,1,0.36,1);

}



/* ── Drag placeholder — empty slot shown during drag */

#estimateTable tr.drag-placeholder td {

    padding: 0 !important;

    background: rgba(99,102,241,.04) !important;

    box-shadow: none !important;

    border-top: 2px dashed rgba(99,102,241,.2) !important;

    border-bottom: 2px dashed rgba(99,102,241,.2) !important;

    border-radius: 6px;

    transition: background .2s ease;

}

[data-bs-theme="dark"] #estimateTable tr.drag-placeholder td {

    border-color: rgba(129,140,248,.3) !important;

    background: rgba(99,102,241,.04) !important;

}



/* ── Dragging row state (now row is out of DOM, class kept for safety) */

#estimateTable tr.dragging {

    opacity: .35;

    background: rgba(99,102,241,.06) !important;

    box-shadow: none !important;

    pointer-events: none;

    transition: none;

}



/* ── Drop indicator — thin accent line, no box-shadow conflict */

#estimateTable tr.drag-over-top > td:first-child { border-top: 2.5px solid var(--primary) !important; }

#estimateTable tr.drag-over-top > td             { border-top: 2.5px solid rgba(99,102,241,.3) !important; }

#estimateTable tr.drag-over-bot > td:first-child { border-bottom: 2.5px solid var(--primary) !important; }

#estimateTable tr.drag-over-bot > td             { border-bottom: 2.5px solid rgba(99,102,241,.3) !important; }

[data-bs-theme="dark"] #estimateTable tr.drag-over-top > td { border-top-color: rgba(129,140,248,.45) !important; }

[data-bs-theme="dark"] #estimateTable tr.drag-over-top > td:first-child { border-top-color: #818cf8 !important; }

[data-bs-theme="dark"] #estimateTable tr.drag-over-bot > td { border-bottom-color: rgba(129,140,248,.45) !important; }

[data-bs-theme="dark"] #estimateTable tr.drag-over-bot > td:first-child { border-bottom-color: #818cf8 !important; }



/* ── Dark overrides */

[data-bs-theme="dark"] #estimateTable thead th {

    background: linear-gradient(135deg, #4338ca 0%, #312e81 100%);

}

[data-bs-theme="dark"] #estimateTable .estimate-group-hdr td {

    background: rgba(99,102,241,.11);

    border-top-color: rgba(99,102,241,.28);

    color: #a5b4fc;

}

[data-bs-theme="dark"] #estimateTable .estimate-group-hdr td::before {

    background: linear-gradient(180deg, #818cf8, var(--accent));

}

[data-bs-theme="dark"] #estimateTable tbody tr:not(.estimate-group-hdr) {

    border-bottom-color: rgba(99,102,241,.09);

}

[data-bs-theme="dark"] #estimateTable tbody tr:not(.estimate-group-hdr):hover {

    background: rgba(99,102,241,.1) !important;

}

[data-bs-theme="dark"] #estimateTable .qty-input:hover,

[data-bs-theme="dark"] #estimateTable .price-input:hover,

[data-bs-theme="dark"] #estimateTable .note-input:hover  { background: rgba(99,102,241,.09); }

[data-bs-theme="dark"] #estimateTable .qty-input:focus,

[data-bs-theme="dark"] #estimateTable .price-input:focus,

[data-bs-theme="dark"] #estimateTable .note-input:focus  { background: rgba(99,102,241,.14); }

[data-bs-theme="dark"] #estimateTable .row-total-cell    { color: #a5b4fc; }

[data-bs-theme="dark"] #estimateTable .btn-del:hover     { background: rgba(244,63,94,.15) !important; }



/* ============================================================

   PROTECTED IMAGES (no right-click, no drag)

   ============================================================ */

.img-protect {

    position: relative;

    display: inline-block;

    line-height: 0;

}

.img-protect::after {

    content: '';

    position: absolute;

    inset: 0;

    cursor: default;

}

.img-protect img {

    pointer-events: none;

    -webkit-user-drag: none;

    user-select: none;

    display: block;

}



/* logo drop area */

.logo-drop-area {

    border: 2px dashed var(--border);

    border-radius: var(--border-radius);

    padding: 1.5rem;

    text-align: center;

    cursor: pointer;

    transition: border-color .2s, background .2s;

}

.logo-drop-area:hover, .logo-drop-area.drag-over {

    border-color: var(--primary);

    background: rgba(99,102,241,.04);

}



/* ── Sign document markers (image-based) ── */

.sign-marker-img {

    position: absolute;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: grab;

    user-select: none;

    z-index: 10;

    border: 2px solid #dc3545;

    border-radius: 4px;

    background: rgba(255,255,255,.35);

    box-shadow: 0 2px 10px rgba(220,53,69,.25);

    transition: box-shadow .15s;

}

.sign-marker-img:active { cursor: grabbing; box-shadow: 0 4px 16px rgba(220,53,69,.4); }

.sign-marker-img-stamp {

    width: 80px;

    height: 80px;

    padding: 4px;

}

.sign-marker-img-sig {

    width: 100px;

    height: 45px;

    padding: 3px;

}

.sign-marker-img img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    pointer-events: none;

    -webkit-user-drag: none;

}

.sign-marker-img .sign-marker-remove {

    position: absolute;

    top: -8px;

    right: -8px;

    width: 18px;

    height: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #dc3545;

    color: #fff;

    border: none;

    border-radius: 50%;

    font-size: .7rem;

    line-height: 1;

    padding: 0;

    cursor: pointer;

    box-shadow: 0 1px 4px rgba(0,0,0,.2);

}

.sign-marker-img .sign-marker-remove:hover { background: #b02a37; }

