:root { color-scheme: light; font-family: Arial, Tahoma, sans-serif; background: #f4f7fb; color: #0f172a; --primary:#312e81; --secondary:#0f766e; --border:#dbe3ee; --muted:#64748b; --danger:#b91c1c; }
* { box-sizing: border-box; }
body { min-height:100vh; margin:0; background:#f4f7fb; line-height:1.6; }
a { color:var(--primary); text-decoration:none; }
button,input,textarea,select { font:inherit; }
button,.primary-button,.secondary-button { display:inline-flex; align-items:center; justify-content:center; min-height:2.65rem; padding:.55rem 1rem; border:1px solid var(--border); border-radius:.65rem; background:#fff; color:#172033; cursor:pointer; font-weight:700; }
.primary-button { border-color:var(--primary); background:var(--primary); color:#fff; }
.secondary-button { background:#eef2ff; border-color:#c7d2fe; color:var(--primary); }
.danger-button { color:var(--danger); border-color:#fecaca; background:#fff7f7; }
.topbar { min-height:4rem; padding:.7rem clamp(1rem,4vw,3rem); background:#fff; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.brand { color:var(--primary); font-size:1.1rem; font-weight:800; }
.topbar nav { display:flex; align-items:center; gap:1rem; flex-wrap:wrap; }
.topbar nav form { margin:0; }
.topbar nav a.active { font-weight:800; }
.user-name { color:var(--muted); }
.link-button { min-height:auto; padding:0; border:0; color:var(--danger); background:transparent; }
.page-shell { width:min(100% - 2rem,74rem); margin:0 auto; padding:clamp(1.5rem,4vw,3rem) 0; }
.page-heading,.section-heading { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:1.4rem; }
h1,h2,h3,p { margin-top:0; }
h1 { margin-bottom:.25rem; color:#172033; }
.eyebrow { margin-bottom:.15rem; color:var(--secondary); font-weight:800; }
.back-link { display:inline-block; margin-bottom:.5rem; }
.login-card { width:min(100%,29rem); margin:min(12vh,6rem) auto 0; padding:clamp(1.5rem,5vw,2.5rem); border:1px solid var(--border); border-radius:1rem; background:#fff; box-shadow:0 1rem 3rem rgb(15 23 42 / 8%); }
.panel { margin-bottom:1.5rem; padding:clamp(1.2rem,3vw,2rem); border:1px solid var(--border); border-radius:.9rem; background:#fff; }
.panel.narrow { max-width:48rem; }
.stack-form { display:grid; gap:1rem; }
.stack-form.compact { margin-top:.8rem; }
.stack-form label { display:grid; gap:.35rem; font-weight:700; }
input,textarea,select { width:100%; padding:.7rem .8rem; border:1px solid #cbd5e1; border-radius:.55rem; background:#fff; color:#0f172a; }
input:focus,textarea:focus,select:focus { outline:3px solid rgb(49 46 129 / 16%); border-color:var(--primary); }
small { color:var(--muted); font-weight:400; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.stats-grid,.feature-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }
.stats-grid article,.feature-grid article { padding:1.4rem; border:1px solid var(--border); border-radius:.85rem; background:#fff; }
.stats-grid strong { display:block; color:var(--primary); font-size:2rem; }
.stats-grid span,.feature-grid p { color:var(--muted); }
.feature-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.table-wrap { overflow-x:auto; border:1px solid var(--border); border-radius:.85rem; background:#fff; }
table { width:100%; border-collapse:collapse; min-width:48rem; }
th,td { padding:.9rem; text-align:right; border-bottom:1px solid var(--border); vertical-align:middle; }
th { background:#f8fafc; color:#475569; }
.actions { display:flex; align-items:center; gap:.45rem; flex-wrap:wrap; }
.actions form,.inline-form { margin:0; }
.badge { display:inline-flex; padding:.2rem .65rem; border-radius:999px; font-size:.85rem; font-weight:800; }
.badge.active { color:#166534; background:#dcfce7; }
.badge.disabled { color:#9f1239; background:#ffe4e6; }
.badge.archived { color:#475569; background:#e2e8f0; }
.notice { margin-bottom:1rem; padding:.8rem 1rem; border-radius:.65rem; border:1px solid; }
.notice.success { color:#166534; background:#f0fdf4; border-color:#bbf7d0; }
.notice.error { color:#991b1b; background:#fef2f2; border-color:#fecaca; }
.notice.info { color:#1e40af; background:#eff6ff; border-color:#bfdbfe; }
.create-box,.employee-card { padding:1rem; border:1px solid var(--border); border-radius:.7rem; background:#fbfdff; }
.create-box { margin-bottom:1rem; }
summary { cursor:pointer; color:var(--primary); font-weight:800; }
.employee-list { display:grid; gap:1rem; }
.employee-head { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; }
.employee-head h3 { margin-bottom:0; }
.employee-card details { margin:.7rem 0; }
.empty { padding:2rem; text-align:center; color:var(--muted); }
code { direction:ltr; unicode-bidi:isolate; }
.currency-grid,.rate-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.currency-card,.rate-grid article { min-width:0; padding:1rem; border:1px solid var(--border); border-radius:.75rem; background:#fbfdff; }
.currency-head,.currency-head>div,.rate-title,.rate-summary,.currency-actions,.order-form { display:flex; align-items:center; gap:.7rem; }
.currency-head,.rate-title,.rate-summary { justify-content:space-between; }
.currency-head h3 { margin:0; }
.flag-symbol { display:grid; place-items:center; width:2.7rem; height:2.7rem; border-radius:50%; background:#eef2ff; font-size:1.35rem; }
.rate-summary { margin:.9rem 0; padding:.7rem; border-radius:.55rem; background:#fff; }
.rate-summary span { display:grid; color:var(--muted); }
.rate-summary strong { color:#172033; font-size:1.05rem; }
.order-label { margin-bottom:.4rem; color:var(--muted); font-size:.9rem; }
.currency-actions { margin:.8rem 0; flex-wrap:wrap; }
.currency-actions form { margin:0; }
.order-form { gap:.25rem; }
.order-form button { min-width:2.7rem; padding:.45rem; }
button:disabled { cursor:not-allowed; opacity:.42; }
.check-label { display:flex!important; grid-template-columns:auto 1fr; align-items:center; gap:.55rem!important; }
.check-label input { width:auto; }
.slide-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.slide-card { min-width:0; padding:1rem; border:1px solid var(--border); border-radius:.75rem; background:#fbfdff; }
.slide-preview,.local-preview,.logo-preview { display:block; width:100%; max-height:18rem; border:1px solid var(--border); border-radius:.6rem; background:#eef2f7; }
.slide-preview { aspect-ratio:16/9; }
.mode-contain { object-fit:contain; }
.mode-cover { object-fit:cover; }
.local-preview,.logo-preview { object-fit:contain; }
.company-tools { display:flex; align-items:center; justify-content:flex-end; gap:.5rem; flex-wrap:wrap; }
.theme-editor { display:grid; grid-template-columns:minmax(20rem,32rem) minmax(0,1fr); align-items:start; gap:1.5rem; }
.theme-controls .panel { margin-bottom:0; }
.theme-three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.color-field { display:flex; gap:.5rem; }
.color-field input[type="color"] { flex:0 0 3.25rem; width:3.25rem; padding:.2rem; }
.theme-save { position:sticky; z-index:4; bottom:1rem; padding:.7rem; border:1px solid var(--border); border-radius:.8rem; background:rgb(255 255 255 / 94%); box-shadow:0 .7rem 2rem rgb(15 23 42 / 14%); }
.theme-save button { width:100%; }
.theme-preview { position:sticky; top:1rem; min-width:0; }
.preview-stage { overflow:auto; padding:1rem; border:1px solid var(--border); border-radius:1rem; background:#dce3ec; }
.preview-frame { margin:auto; overflow:auto; border-radius:.8rem; background:#fff; box-shadow:0 1rem 3rem rgb(15 23 42 / 18%); transition:width .2s ease; }
.preview-frame[data-device="TV"] { width:100%; aspect-ratio:16/9; }
.preview-frame[data-device="LAPTOP"] { width:88%; aspect-ratio:16/10; }
.preview-frame[data-device="TABLET"] { width:min(70%,43.75rem); aspect-ratio:3/4; }
.preview-frame[data-device="MOBILE"] { width:min(46%,24.375rem); aspect-ratio:9/16; }
.preview-frame .exchange-display { height:100%; min-height:0; }
@media (max-width:1180px) { .theme-editor { grid-template-columns:1fr; } .theme-preview { position:static; } }
@media (max-width:980px) { .slide-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:760px) { .topbar,.page-heading { align-items:flex-start; flex-direction:column; } .form-grid,.stats-grid,.feature-grid,.currency-grid,.rate-grid,.slide-grid,.theme-three { grid-template-columns:1fr; } .page-heading .primary-button { width:100%; } .user-name { display:none; } .panel { padding:1rem; } .currency-actions>form:not(.order-form) button { width:100%; } .currency-actions>form:not(.order-form) { flex:1 1 42%; } .company-tools { justify-content:flex-start; } .preview-frame[data-device="TABLET"],.preview-frame[data-device="MOBILE"] { width:90%; } }
