:root { --ink:#172a2a; --muted:#667878; --line:#d9e4e2; --surface:#fff; --canvas:#f4f7f6; --teal:#123d3d; --teal-2:#0d5754; --mint:#e7f4ef; --orange:#de7c36; --danger:#b84242; --shadow:0 12px 32px rgba(17,43,43,.08); font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; color:var(--ink); background:var(--canvas); }
* { box-sizing:border-box; } body { margin:0; min-width:320px; } button,input,select,textarea { font:inherit; } button { cursor:pointer; } .hidden { display:none !important; }
.login-shell { min-height:100vh; display:grid; place-items:center; padding:24px; background:radial-gradient(circle at 80% 15%, #d5ece4 0, transparent 26rem), var(--teal); }.login-card { width:min(100%,430px); background:#fff; padding:46px; border-radius:22px; box-shadow:0 24px 60px rgba(0,0,0,.22); }.brand-mark { width:52px; height:52px; display:grid; place-items:center; color:white; background:var(--orange); border-radius:16px; font-family:Georgia,serif; font-size:28px; font-weight:700; }.brand-mark.small { width:35px; height:35px; border-radius:11px; font-size:20px; }.eyebrow { margin:25px 0 4px; font-size:12px; font-weight:800; letter-spacing:.14em; color:var(--teal-2); }.login-card h1 { margin:0 0 8px; font-size:31px; letter-spacing:-.04em; }.muted { color:var(--muted); margin:0 0 25px; line-height:1.5; }.stack-form { display:grid; gap:16px; }.stack-form label,.field { display:grid; gap:7px; color:#3b5151; font-size:13px; font-weight:700; } input,textarea,select { width:100%; padding:11px 12px; border:1px solid #bfcecb; border-radius:8px; color:var(--ink); background:#fff; outline:none; transition:border .15s, box-shadow .15s; } textarea { min-height:104px; resize:vertical; } input:focus,textarea:focus,select:focus { border-color:var(--teal-2); box-shadow:0 0 0 3px rgba(13,87,84,.13); }.button { border:0; border-radius:8px; padding:11px 16px; font-weight:750; display:inline-flex; align-items:center; justify-content:center; gap:12px; }.button.primary { background:var(--teal); color:#fff; }.button.primary:hover { background:var(--teal-2); }.button.secondary { background:#e9f0ee; color:var(--teal); }.button.danger { background:#f9e7e7; color:#9c2525; }.login-note { margin:22px 0 0; padding:12px; border-radius:8px; background:#fff5e9; color:#79522c; font-size:12px; line-height:1.5; }.login-note code { color:#542f0c; font-weight:800; }
.app-shell { min-height:100vh; display:flex; }.sidebar { width:250px; flex:none; min-height:100vh; background:var(--teal); color:#dbe8e5; padding:22px 14px; display:flex; flex-direction:column; position:sticky; top:0; height:100vh; }.sidebar-brand { display:flex; align-items:center; gap:10px; padding:5px 9px 30px; color:white; }.sidebar-brand strong,.sidebar-brand span { display:block; }.sidebar-brand span { color:#a3c1bb; font-size:12px; margin-top:2px; }.sidebar nav { display:grid; gap:4px; }.sidebar nav a { color:#b7d0cb; text-decoration:none; padding:11px 12px; display:flex; align-items:center; gap:11px; border-radius:8px; font-size:14px; font-weight:650; }.sidebar nav a span { font-size:19px; line-height:1; width:19px; text-align:center; }.sidebar nav a:hover,.sidebar nav a.active { background:rgba(255,255,255,.12); color:#fff; }.sidebar-bottom { border-top:1px solid rgba(255,255,255,.15); margin-top:auto; padding:17px 9px 4px; display:grid; gap:8px; font-size:12px; color:#b7d0cb; overflow-wrap:anywhere; }.text-button { border:0; padding:0; background:transparent; color:#fff; text-align:left; font-size:12px; font-weight:700; }.app-main { min-width:0; flex:1; }.topbar { min-height:72px; padding:0 36px; display:flex; align-items:center; justify-content:space-between; background:rgba(255,255,255,.8); backdrop-filter:blur(8px); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:3; }.topbar h1 { font-size:18px; margin:0; letter-spacing:-.02em; }.topbar p { margin:3px 0 0; color:var(--muted); font-size:12px; }.topbar-actions { display:flex; gap:10px; align-items:center; }.view { max-width:1440px; margin:auto; padding:32px 36px 60px; }.mobile-menu { display:none; border:0; color:var(--teal); background:none; font-size:22px; padding:5px; }
.page-header { display:flex; justify-content:space-between; gap:18px; align-items:flex-end; margin-bottom:25px; }.page-header h2 { margin:0; font-size:28px; letter-spacing:-.04em; }.page-header p { margin:6px 0 0; color:var(--muted); }.dashboard-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:25px; }.metric { background:#fff; border:1px solid var(--line); border-radius:12px; padding:18px; box-shadow:0 3px 12px rgba(20,60,60,.03); }.metric span { display:block; color:var(--muted); font-size:12px; font-weight:700; }.metric strong { display:block; font-size:29px; margin-top:8px; letter-spacing:-.05em; }.content-card { background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; }.content-card-header { padding:17px 20px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }.content-card-header h3 { margin:0; font-size:15px; }.table-wrap { overflow:auto; }.data-table { width:100%; border-collapse:collapse; min-width:760px; }.data-table th { text-align:left; color:#58706f; background:#f8faf9; font-size:11px; letter-spacing:.04em; text-transform:uppercase; }.data-table th,.data-table td { padding:13px 16px; border-bottom:1px solid #e7eeee; }.data-table td { font-size:13px; }.data-table tr:last-child td { border-bottom:0; }.data-table tbody tr { cursor:pointer; }.data-table tbody tr:hover { background:#f5faf8; }.order-number { color:var(--teal-2); font-weight:800; }.primary-cell { font-weight:700; }.secondary-cell { display:block; color:var(--muted); font-size:12px; margin-top:3px; }.status,.priority { display:inline-flex; padding:4px 8px; border-radius:999px; font-size:11px; font-weight:800; white-space:nowrap; }.status.nacrt { color:#617170; background:#e9eeed; }.status.otvoren { color:#176667; background:#ddf1ef; }.status.u_proizvodnji { color:#915618; background:#fdf0d9; }.status.zavrsen { color:#26734d; background:#e2f5e8; }.status.otkazan { color:#a33434; background:#fae5e5; }.priority.hitno { color:#9f2626; background:#fae0e0; }.priority.visoki { color:#a45d18; background:#fff0dc; }.priority.normalan,.priority.niski { color:#55716c; background:#edf3f1; }.empty { padding:52px 25px; text-align:center; color:var(--muted); }.empty strong { display:block; color:var(--ink); font-size:16px; margin-bottom:7px; }.empty .button { margin-top:17px; }
.filters { display:flex; gap:10px; margin-bottom:18px; }.filters input { max-width:390px; }.filters select { width:190px; }.form-card { background:#fff; border:1px solid var(--line); border-radius:13px; padding:25px; }.form-section + .form-section { border-top:1px solid var(--line); padding-top:25px; margin-top:25px; }.form-section h3 { margin:0 0 5px; font-size:16px; }.form-section > p { margin:0 0 19px; color:var(--muted); font-size:13px; }.form-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:17px; }.span-2 { grid-column:span 2; }.span-4 { grid-column:1 / -1; }.row-table { width:100%; border-collapse:separate; border-spacing:0 8px; min-width:1050px; }.row-table th { text-align:left; font-size:10px; letter-spacing:.04em; text-transform:uppercase; color:#637776; padding:0 5px 3px; }.row-table td { padding:0 4px; }.row-table input { min-width:90px; padding:9px 8px; font-size:12px; }.row-table textarea { min-height:38px; padding:8px; font-size:12px; }.add-row { margin-top:10px; border:1px dashed #97b6af; color:var(--teal-2); background:#f5fbf9; }.icon-button { border:0; width:30px; height:30px; border-radius:7px; background:#f8eaea; color:#ad4040; font-size:21px; line-height:1; }.form-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:25px; }.detail-header { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; margin-bottom:22px; }.detail-number { color:var(--teal-2); font-size:13px; font-weight:800; letter-spacing:.08em; }.detail-header h2 { margin:5px 0; font-size:29px; letter-spacing:-.04em; }.detail-header p { margin:0; color:var(--muted); }.detail-meta { display:grid; grid-template-columns:repeat(4,1fr); border-bottom:1px solid var(--line); }.detail-meta div { padding:16px 20px; border-right:1px solid var(--line); }.detail-meta div:last-child { border-right:0; }.detail-meta span { display:block; color:var(--muted); font-size:11px; font-weight:750; text-transform:uppercase; letter-spacing:.04em; }.detail-meta strong { display:block; margin-top:6px; font-size:14px; }.detail-section { padding:22px 20px; border-bottom:1px solid var(--line); }.detail-section:last-child { border-bottom:0; }.detail-section h3 { margin:0 0 15px; font-size:14px; }.detail-section p { white-space:pre-wrap; margin:0; line-height:1.5; }.detail-customer { display:grid; grid-template-columns:repeat(2,1fr); gap:12px 45px; }.detail-customer div span { display:block; font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; font-weight:750; }.detail-customer div strong { display:block; margin-top:4px; font-size:14px; }.detail-table { min-width:850px; }.detail-table tbody tr { cursor:default; }.detail-table tbody tr:hover { background:transparent; }.detail-table th,.detail-table td { padding:11px 10px; }.divider { border:0; border-top:1px solid var(--line); margin:22px 0; } #toast { position:fixed; right:22px; bottom:22px; z-index:10; max-width:380px; background:#173b3a; color:white; padding:13px 17px; border-radius:9px; box-shadow:var(--shadow); transform:translateY(120px); opacity:0; transition:.25s; font-size:13px; }.toast-error { background:#9c3030 !important; } #toast.show { transform:translateY(0); opacity:1; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }.file-picker { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; min-height:92px; border:1.5px dashed #80aaa1; border-radius:10px; color:var(--teal-2); background:#f5fbf9; cursor:pointer; text-align:center; }.file-picker:hover { background:#eaf6f1; border-color:var(--teal-2); }.file-picker span { font-weight:800; }.file-picker small { color:#667878; font-size:12px; }.attachment-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(165px,1fr)); gap:14px; margin-top:16px; }.existing-attachments { padding-top:2px; }.attachment-card { margin:0; border:1px solid var(--line); border-radius:9px; overflow:hidden; background:#fff; break-inside:avoid; }.attachment-card img { display:block; width:100%; height:142px; object-fit:cover; background:#eef3f1; }.attachment-card figcaption { min-height:42px; padding:8px; display:flex; align-items:center; gap:8px; justify-content:space-between; font-size:11px; color:#3c5654; }.attachment-card figcaption span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.attachment-card figcaption small { display:block; margin-top:2px; color:#78908d; }.attachment-card .icon-button { flex:none; width:25px; height:25px; font-size:18px; }.attachments-detail { background:#fbfdfc; }.print-attachment-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.print-attachment-grid .attachment-card img { height:auto; max-height:440px; object-fit:contain; }.print-attachment-grid .attachment-card figcaption { justify-content:flex-start; }
.order-document { width:min(100%,297mm); min-height:210mm; margin:0 auto; padding:10mm; background:#fff; border:1px solid var(--line); box-shadow:0 12px 34px rgba(17,43,43,.09); }.order-document .detail-header { break-after:avoid; }.order-document .detail-section,.order-document tr,.order-document .attachment-card { break-inside:avoid; page-break-inside:avoid; }
@media (max-width:980px) { .dashboard-grid { grid-template-columns:repeat(2,1fr); }.form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.span-4 { grid-column:1 / -1; }.detail-meta { grid-template-columns:repeat(2,1fr); }.detail-meta div:nth-child(2) { border-right:0; }.detail-meta div:nth-child(-n+2) { border-bottom:1px solid var(--line); } }
@media (max-width:720px) { .sidebar { position:fixed; z-index:5; transform:translateX(-100%); transition:transform .2s; box-shadow:var(--shadow); }.sidebar.open { transform:translateX(0); }.mobile-menu { display:block; }.topbar { padding:0 18px; gap:12px; }.view { padding:24px 16px 45px; }.page-header,.detail-header { align-items:stretch; flex-direction:column; }.page-header .button,.detail-header .topbar-actions { width:100%; }.page-header .button { align-self:stretch; }.dashboard-grid { grid-template-columns:1fr 1fr; }.form-card { padding:17px; }.form-grid { grid-template-columns:1fr; }.span-2,.span-4 { grid-column:1; }.filters { flex-direction:column; }.filters input,.filters select { max-width:none; width:100%; }.detail-customer { grid-template-columns:1fr; }.detail-meta { grid-template-columns:1fr; }.detail-meta div { border-right:0; border-bottom:1px solid var(--line); }.detail-meta div:last-child { border-bottom:0; }.login-card { padding:33px 25px; }.topbar-actions { display:flex; }.topbar-actions .button { flex:1; padding:10px; } }
@media (max-width:720px) { .order-document { min-height:0; padding:16px; border-radius:10px; } }
@media print { @page { size:A4 landscape; margin:10mm; } html,body { background:white; } .sidebar,.topbar,#toast,.no-print { display:none !important; } .app-shell,.app-main { display:block; } .view { padding:0; max-width:none; } .order-document { width:auto; min-height:0; margin:0; padding:0; border:0; box-shadow:none; } .content-card { border:0; border-radius:0; } .detail-header { margin-bottom:10px; } .detail-header h2 { font-size:22px; } .detail-section { padding:10px 6px; } .detail-meta div { padding:8px 6px; } .table-wrap { overflow:visible; } .detail-table { min-width:0; width:100%; table-layout:fixed; } .data-table th,.data-table td { padding:6px 4px; font-size:8px; overflow-wrap:anywhere; } .attachment-card figcaption { font-size:9px; } }
