.odnl-portal{ font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
.odnl-topbar{ display:flex; justify-content:space-between; align-items:flex-end; gap:12px; margin-bottom:12px; }
.odnl-title{ font-size:20px; font-weight:800; }
.odnl-subtitle{ color:#667085; font-size:13px; margin-top:2px; }
.odnl-user{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.odnl-chip{ background:#eef2ff; border:1px solid #e0e7ff; padding:6px 10px; border-radius:999px; font-size:12px; }
.odnl-chip--manager{ background:#ecfdf3; border-color:#d1fadf; }
.odnl-chip--tech{ background:#fffbeb; border-color:#fde68a; }

.odnl-tabs{ display:flex; gap:8px; flex-wrap:wrap; margin:10px 0 14px; }
.odnl-tab{ background:#fff; border:1px solid #e7e9ee; border-radius:999px; padding:8px 12px; font-size:13px; cursor:pointer; }
.odnl-tab.active{ background:#111827; color:#fff; border-color:#111827; }

.odnl-grid{ display:grid; grid-template-columns: 1fr 1.2fr; gap:12px; }
@media (max-width: 980px){ .odnl-grid{ grid-template-columns:1fr; } }

.odnl-panel{ background:#fff; border:1px solid #e7e9ee; border-radius:14px; overflow:hidden; }
.odnl-panel-head{ display:flex; justify-content:space-between; align-items:center; gap:10px; padding:12px 12px 10px; border-bottom:1px solid #eef0f4; }
.odnl-h2{ font-size:14px; font-weight:800; }
.odnl-actions{ display:flex; gap:8px; flex-wrap:wrap; }
.odnl-btn{ border:1px solid #e7e9ee; background:#fff; padding:8px 10px; border-radius:10px; cursor:pointer; font-size:13px; text-decoration:none; display:inline-block; }
.odnl-btn.primary{ background:#111827; color:#fff; border-color:#111827; }
.odnl-btn.danger{ background:#fff1f2; border-color:#ffe4e6; }
.odnl-btn:disabled{ opacity:.6; cursor:not-allowed; }

.odnl-filters{ padding:10px 12px; border-bottom:1px solid #eef0f4; display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.odnl-input, .odnl-select{ border:1px solid #e7e9ee; border-radius:10px; padding:8px 10px; font-size:13px; background:#fff; width:100%; }
.odnl-field{ display:flex; flex-direction:column; gap:6px; }
.odnl-field .odnl-label{ font-size:12px; color:#667085; }
.odnl-muted{ color:#667085; font-size:13px; }

.odnl-list{ max-height: 72vh; overflow:auto; }
.odnl-row{ padding:12px; border-bottom:1px solid #eef0f4; cursor:pointer; }
.odnl-row:hover{ background:#fafafa; }
.odnl-row.active{ background:#f6f7f9; }
.odnl-row-top{ display:flex; justify-content:space-between; align-items:center; gap:10px; }
.odnl-row-title{ font-weight:800; font-size:13px; }
.odnl-row-sub{ margin-top:4px; color:#667085; font-size:12px; }

.odnl-badge{ font-size:11px; padding:4px 8px; border-radius:999px; border:1px solid #e7e9ee; background:#fff; white-space:nowrap; }
.odnl-badge.planned{ background:#eef2ff; border-color:#e0e7ff; }
.odnl-badge.onroute{ background:#fffbeb; border-color:#fde68a; }
.odnl-badge.working{ background:#ecfeff; border-color:#cffafe; }
.odnl-badge.ready{ background:#ecfdf3; border-color:#d1fadf; }
.odnl-badge.created{ background:#f6f7f9; }
.odnl-badge.closed{ background:#f3f4f6; }

.odnl-detail{ padding:12px; }
.odnl-card{ background:#f6f7f9; border:1px solid #eef0f4; border-radius:12px; padding:12px; margin-bottom:10px; }
.odnl-grid2{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
@media (max-width: 980px){ .odnl-grid2{ grid-template-columns:1fr; } }

.odnl-textarea{ width:100%; min-height:90px; border:1px solid #e7e9ee; border-radius:12px; padding:10px; font-size:13px; }
.odnl-hr{ height:1px; background:#eef0f4; margin:12px 0; }

.odnl-photos{ display:flex; gap:10px; flex-wrap:wrap; }
.odnl-photo{ width:110px; }
.odnl-photo img{ width:110px; height:110px; object-fit:cover; border-radius:12px; border:1px solid #e7e9ee; }
.odnl-photo .odnl-btn{ width:100%; margin-top:6px; }

.odnl-toast{ position:fixed; right:16px; bottom:16px; background:#111827; color:#fff; padding:10px 12px; border-radius:12px; display:none; z-index:9999; }

/* Modal */
.odnl-modal-host{ position:fixed; inset:0; z-index:10000; }
.odnl-modal-backdrop{ position:absolute; inset:0; background:rgba(17,24,39,.55); }
.odnl-modal{ position:relative; width:min(860px, calc(100vw - 24px)); margin:40px auto; background:#fff; border-radius:16px; border:1px solid #e7e9ee; box-shadow:0 10px 30px rgba(0,0,0,.18); overflow:hidden; }
.odnl-modal-head{ display:flex; justify-content:space-between; align-items:center; gap:10px; padding:12px 12px 10px; border-bottom:1px solid #eef0f4; }
.odnl-modal-title{ font-weight:900; font-size:14px; }
.odnl-modal-body{ padding:12px; }
.odnl-modal-foot{ padding:12px; border-top:1px solid #eef0f4; display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; }

.odnl-form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
@media (max-width: 980px){ .odnl-form-grid{ grid-template-columns:1fr; } }

.odnl-help{ font-size:12px; color:#667085; }
.odnl-required{ color:#b42318; font-weight:800; margin-left:4px; }

/* Login layout */
.odnl-login-wrap{ display:flex; justify-content:center; }
.odnl-panel--login{ width:min(640px, 100%); }

.odnl-table{ width:100%; border-collapse:collapse; }
.odnl-table th, .odnl-table td{ padding:8px 10px; border-bottom:1px solid #eef0f4; font-size:13px; text-align:left; }
.odnl-table th{ color:#667085; font-size:12px; letter-spacing:.2px; }
