        :root {
            --bg: #f1f5f9;
            --surface: #ffffff;
            --surface-subtle: #f8fafc;
            --surface-card: #f8fafc;
            --border: #cbd5e1;
            --border-strong: #94a3b8;
            --text-main: #334155;
            --text-heading: #0f172a;
            --text-muted: #64748b;
            --brand-navy: #0f172a;
            --brand-blue: #0284c7;
            --brand-blue-hover: #0369a1;
            --green: #059669;
            --green-bg: #ecfdf5;
            --green-border: #a7f3d0;
            --amber: #d97706;
            --amber-bg: #fffbeb;
            --amber-border: #fde68a;
            --red: #dc2626;
            --red-bg: #fef2f2;
            --red-border: #fecaca;
            --shadow-card: 0 2px 6px -1px rgba(15, 23, 42, 0.06);
            --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
            --radius-lg: 8px;
            --radius-md: 6px;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; }
        body { 
            font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
            background: var(--bg); 
            color: var(--text-main); 
            line-height: 1.4; 
            font-size: 12.5px; 
            -webkit-font-smoothing: antialiased;
        }

        .layout { max-width: 1080px; margin: 0 auto; padding: 16px 14px; }
        .layout-wide { max-width: 1540px; margin: 0 auto; padding: 16px 14px; }

        .top-nav { 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            padding: 10px 18px; 
            border-radius: var(--radius-lg); 
            margin-bottom: 14px; 
            box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
            flex-wrap: wrap; 
            gap: 12px; 
            color: #fff;
        }
        .brand-box { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
        .brand-logo-badge {
            width: 34px;
            height: 34px;
            background: linear-gradient(135deg, #0284c7, #06b6d4);
            color: #fff;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 14px;
        }
        .brand-title { font-size: 14.5px; font-weight: 800; color: #ffffff; letter-spacing: -0.01em; }
        .brand-sub { font-size: 11px; color: #94a3b8; font-weight: 500; }

        .nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
        .nav-links a { 
            color: #cbd5e1; 
            text-decoration: none; 
            font-size: 12px; 
            font-weight: 600; 
            padding: 6px 11px; 
            border-radius: var(--radius-md); 
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.12s ease;
        }
        .nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
        .nav-links a.active { color: #fff; background: var(--brand-blue); border-color: var(--brand-blue); }

        /* 2.7.4: zavihki portala naročnika v temni glavi (druga vrstica) */
        .portal-nav-tabs {
            flex: 1 0 100%;
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            padding-top: 10px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        .portal-nav-tabs a {
            color: #cbd5e1;
            text-decoration: none;
            font-size: 12px;
            font-weight: 700;
            padding: 7px 12px;
            border-radius: var(--radius-md);
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: background 0.12s ease, color 0.12s ease;
            white-space: nowrap;
        }
        .portal-nav-tabs a:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
        .portal-nav-tabs a.accent { color: #38bdf8; }
        .portal-nav-tabs a.active { color: #fff; background: var(--brand-blue); border-color: var(--brand-blue); }
        .portal-nav-tabs a:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }

        .panel { 
            background: var(--surface); 
            border: 1px solid var(--border); 
            border-radius: var(--radius-lg); 
            padding: 18px 22px; 
            margin-bottom: 16px; 
            box-shadow: var(--shadow-card);
        }
        .panel-heading { 
            font-size: 15px; 
            font-weight: 800; 
            color: var(--text-heading); 
            margin-bottom: 14px; 
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .intro-hero {
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            color: #ffffff;
            border-radius: var(--radius-lg);
            padding: 42px 28px;
            margin-bottom: 16px;
            box-shadow: var(--shadow-card);
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        .intro-hero::after {
            content: '';
            position: absolute;
            top: -40px;
            right: -40px;
            width: 180px;
            height: 180px;
            background: radial-gradient(circle, rgba(2, 132, 199, 0.25) 0%, transparent 70%);
            border-radius: 50%;
        }
        .intro-tag {
            display: inline-block;
            background: rgba(2, 132, 199, 0.2);
            border: 1px solid rgba(2, 132, 199, 0.4);
            color: #38bdf8;
            padding: 4px 12px;
            border-radius: 9999px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 12px;
        }
        .intro-hero h1 {
            font-size: 25px;
            font-weight: 800;
            letter-spacing: -0.02em;
            line-height: 1.25;
            margin-bottom: 12px;
            color: #ffffff;
        }
        .intro-hero p {
            max-width: 640px;
            margin: 0 auto 24px auto;
            color: #94a3b8;
            font-size: 13px;
            line-height: 1.6;
        }
        .intro-actions {
            display: flex;
            justify-content: center;
            gap: 12px;
            flex-wrap: wrap;
        }
        .btn-hero-primary {
            background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
            color: #ffffff;
            padding: 9px 18px;
            font-size: 12.5px;
            font-weight: 700;
            border-radius: 6px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
            transition: transform 0.1s ease;
        }
        .btn-hero-primary:hover {
            transform: translateY(-1px);
        }
        .btn-hero-outline {
            background: rgba(255, 255, 255, 0.05);
            color: #e2e8f0;
            border: 1px solid rgba(255, 255, 255, 0.2);
            padding: 9px 18px;
            font-size: 12.5px;
            font-weight: 700;
            border-radius: 6px;
            text-decoration: none;
            transition: all 0.15s ease;
        }
        .btn-hero-outline:hover {
            background: rgba(255, 255, 255, 0.12);
            color: #ffffff;
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 14px;
            margin-bottom: 16px;
        }
        .service-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 18px;
            box-shadow: var(--shadow-card);
            transition: transform 0.15s ease, border-color 0.15s ease;
        }
        .service-card:hover {
            transform: translateY(-2px);
            border-color: var(--brand-blue);
        }
        .service-icon {
            width: 36px;
            height: 36px;
            border-radius: 6px;
            background: #e0f2fe;
            color: #0284c7;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            margin-bottom: 12px;
        }
        .service-card h3 {
            font-size: 13.5px;
            font-weight: 800;
            color: var(--text-heading);
            margin-bottom: 6px;
        }
        .service-card p {
            font-size: 11.5px;
            color: var(--text-muted);
            line-height: 1.5;
        }

        .portal-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
        .portal-tabs a { 
            color: var(--text-main); 
            text-decoration: none; 
            font-size: 12px; 
            font-weight: 700; 
            padding: 7px 14px; 
            border: 1px solid var(--border); 
            border-radius: var(--radius-md); 
            background: #fff; 
            box-shadow: var(--shadow-sm);
        }
        .portal-tabs a.active { color: #fff; background: var(--brand-navy); border-color: var(--brand-navy); }

        .subtabs-bar { 
            display: flex; 
            gap: 4px; 
            background: #e2e8f0; 
            padding: 3px; 
            border-radius: 6px; 
            margin-bottom: 14px; 
            width: fit-content;
        }
        .subtabs-bar a { 
            color: var(--text-main); 
            text-decoration: none; 
            font-size: 11.5px; 
            font-weight: 700; 
            padding: 5px 11px; 
            border-radius: 4px; 
        }
        .subtabs-bar a.active { background: #fff; color: var(--brand-blue); box-shadow: var(--shadow-sm); }

        .search-hero-box {
            background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
            border: 1px solid #7dd3fc;
            padding: 10px 14px;
            border-radius: var(--radius-md);
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
        }
        .search-hero-title { font-weight: 800; color: #0369a1; font-size: 12px; }
        .search-inputs { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 260px; }
        .search-inputs input {
            flex: 1;
            padding: 5px 9px;
            background: #fff;
            border: 1px solid #94a3b8;
            border-radius: 5px;
            font-size: 12px;
            font-weight: 600;
        }

        .kpi-cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 12px;
            margin-bottom: 16px;
        }
        .kpi-card {
            background: var(--surface-subtle);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 12px 14px;
        }
        .kpi-title { font-size: 10.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 2px; }
        .kpi-value { font-size: 18px; font-weight: 800; color: var(--text-heading); }
        .kpi-value.green { color: var(--green); }

        .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
        .grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 8px; }
        .grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 10px; margin-bottom: 8px; }
        @media (max-width: 860px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

        .control { margin-bottom: 8px; }
        label { display: block; font-size: 10.5px; font-weight: 700; color: #475569; margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.02em; }
        input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="time"], input[type="number"], select, textarea {
            width: 100%; 
            padding: 6px 9px; 
            background: #ffffff; 
            border: 1px solid var(--border); 
            border-radius: 5px; 
            color: var(--text-heading); 
            font-size: 12px; 
            font-family: inherit;
        }
        input:focus, select:focus, textarea:focus { 
            outline: none; 
            border-color: var(--brand-blue); 
            box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15); 
        }
        textarea { height: 65px; resize: vertical; line-height: 1.35; }

        .btn-submit { 
            background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); 
            color: #fff; 
            border: none; 
            padding: 7px 15px; 
            border-radius: 5px; 
            font-size: 12px; 
            font-weight: 700; 
            cursor: pointer; 
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }
        .btn-submit:hover { background: #0369a1; }

        .btn-sm { 
            display: inline-block; 
            padding: 4px 8px; 
            border-radius: 5px; 
            font-size: 11px; 
            font-weight: 700; 
            text-decoration: none; 
            border: 1px solid var(--border); 
            color: #334155; 
            background: #fff;
        }
        .btn-sm:hover { background: #f1f5f9; color: #0f172a; }
        .btn-sm.primary { color: #fff; background: var(--brand-blue); border-color: var(--brand-blue); }
        .btn-sm.danger { color: var(--red); border-color: var(--red-border); }

        .alert { padding: 9px 12px; border-radius: 6px; margin-bottom: 14px; font-size: 12px; line-height: 1.4; display: flex; align-items: center; gap: 8px; }
        .alert.ok { background: var(--green-bg); border: 1px solid var(--green-border); color: var(--green); }
        .alert.warn { background: var(--amber-bg); border: 1px solid var(--amber-border); color: var(--amber); }
        .alert.err { background: var(--red-bg); border: 1px solid var(--red-border); color: var(--red); }

        .hp-field { display: none !important; }

        .table-responsive { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
        table { width: 100%; border-collapse: collapse; font-size: 12px; }
        th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
        th { background: #f8fafc; color: #475569; font-size: 10.5px; text-transform: uppercase; font-weight: 800; border-top: none; }
        tbody tr:hover td { background: #f8fafc; }
        
        .badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 9999px; font-size: 10.5px; font-weight: 700; }
        .badge.Kritično\ \/\ Zastoj, .badge.Storniran, .badge.Zavrnjeno, .badge.Nujno { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border); }
        .badge.Visoka, .badge.Osnutek, .badge.Potečeno { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-border); }
        .badge.Srednja, .badge.Izdan, .badge.Poslano, .badge.in_progress { background: #e0f2fe; color: #0284c7; border: 1px solid #bae6fd; }
        .badge.Nizka, .badge.Plačan, .badge.Sprejeto, .badge.done { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
        .badge.review { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
        .badge.todo { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

        /* LIVE TIMELINE & COLLABORATIVE TODO DESIGN */
        .timeline-container { position: relative; margin-top: 15px; margin-bottom: 25px; padding-left: 20px; }
        .timeline-container::before {
            content: '';
            position: absolute;
            top: 5px;
            bottom: 5px;
            left: 7px;
            width: 3px;
            background: #cbd5e1;
            border-radius: 2px;
        }
        .timeline-card {
            position: relative;
            background: #ffffff;
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 14px 16px;
            margin-bottom: 16px;
            box-shadow: var(--shadow-sm);
            transition: all 0.15s ease;
        }
        .timeline-card:hover { border-color: var(--brand-blue); box-shadow: var(--shadow-card); }
        .timeline-card::before {
            content: '';
            position: absolute;
            left: -20px;
            top: 18px;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #fff;
            border: 3px solid var(--brand-blue);
            box-shadow: 0 0 0 2px #fff;
        }
        .timeline-card.done::before { border-color: var(--green); background: var(--green); }
        .timeline-card.in_progress::before { border-color: var(--brand-blue); background: var(--brand-blue); animation: pulseDot 1.5s infinite; }
        @keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.4); } 70% { box-shadow: 0 0 0 6px rgba(2, 132, 199, 0); } 100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); } }

        .timeline-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; flex-wrap: wrap; gap: 8px; }
        .timeline-title { font-size: 13.5px; font-weight: 800; color: var(--text-heading); }
        .timeline-meta { font-size: 11px; color: var(--text-muted); display: flex; gap: 10px; align-items: center; }
        .timeline-body { font-size: 12px; color: var(--text-main); line-height: 1.5; margin-bottom: 12px; }

        .timeline-comments-area { background: #f8fafc; border-radius: 6px; border: 1px solid #e2e8f0; padding: 10px; margin-top: 10px; }
        .comment-item { display: flex; gap: 10px; margin-bottom: 8px; font-size: 11.5px; }
        .comment-item:last-child { margin-bottom: 0; }
        .comment-bubble { background: #fff; border: 1px solid #cbd5e1; border-radius: 6px; padding: 6px 10px; flex: 1; }
        .comment-bubble.admin { border-left: 3px solid var(--brand-blue); background: #f0f9ff; }
        .comment-bubble.stranka { border-left: 3px solid var(--green); }
        .comment-meta { font-size: 10.5px; color: var(--text-muted); margin-bottom: 3px; display: flex; justify-content: space-between; }

        .timeline-progress-bar-bg { width: 100%; height: 8px; background: #e2e8f0; border-radius: 9999px; overflow: hidden; margin: 10px 0 16px 0; }
        .timeline-progress-fill { height: 100%; background: linear-gradient(90deg, #0284c7, #10b981); transition: width 0.3s ease; }

        .item-card { border: 1px solid var(--border); padding: 9px 12px; border-radius: 6px; margin-bottom: 8px; background: var(--surface-card); }
        .item-form-row { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr auto; gap: 8px; align-items: start; margin-bottom: 6px; }
        @media (max-width: 768px) { .item-form-row { grid-template-columns: 1fr; } }

        footer.site-footer {
            margin-top: 36px;
            padding: 16px 0;
            border-top: 1px solid var(--border);
            text-align: center;
            font-size: 11px;
            color: var(--text-muted);
            line-height: 1.6;
        }
        .footer-company-name { font-weight: 800; color: var(--text-heading); font-size: 12px; }

/* One attachment editor; preserve plain-text line breaks in existing offers. */
.offer-attachment { background:#eff6ff; border:1.5px solid #93c5fd; border-radius:6px; padding:12px; margin-bottom:14px; }
.offer-attachment-heading { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-bottom:8px; color:#1e3a8a; }
.offer-attachment-heading span { font-size:10.5px; }
.offer-attachment-toolbar { display:flex; flex-wrap:wrap; gap:5px; margin-bottom:6px; }
.offer-attachment [hidden] { display:none !important; }
.offer-attachment-editor { min-height:200px; max-height:450px; overflow-y:auto; background:#fff; border:1px solid #94a3b8; border-radius:5px; padding:12px; font-size:12px; line-height:1.6; color:#0f172a; white-space:pre-wrap; overflow-wrap:anywhere; }
.offer-attachment-editor:focus { outline:2px solid #0284c7; outline-offset:1px; }
.offer-attachment-editor p { margin:0 0 7px; }
.offer-attachment-editor ul, .offer-attachment-editor ol { margin:4px 0 8px 18px; padding:0; }
.offer-attachment-editor table { border-collapse:collapse; width:100%; }
.offer-attachment-editor td, .offer-attachment-editor th { border:1px solid #cbd5e1; padding:4px 6px; }
