/* Field Connect visual system aligned with the Billing workspace. */
:root{
  --fc-ink:#071027;--fc-muted:#62708a;--fc-line:#e2e8f0;
  --fc-canvas:#fafbfc;--fc-surface:#fff;--fc-blue:#2474f5;
  --fc-blue-hover:#1768e8;--fc-blue-soft:#eaf3ff;
  --fc-shadow:0 1px 3px rgba(19,35,62,.06);
  color:var(--fc-ink);background:var(--fc-canvas)
}
html,body{background:var(--fc-canvas);color:var(--fc-ink)}
body{font-size:13px;line-height:1.45}
.login-screen{background:radial-gradient(circle at 80% 0,#e7f1ff,transparent 42%),var(--fc-canvas)}
.login-card{width:min(420px,100%);gap:16px;border-color:var(--fc-line);border-radius:15px;padding:32px;box-shadow:0 20px 60px rgba(19,35,62,.12)}
.login-card h1{font-size:28px;letter-spacing:-.03em}
.login-card .muted{font-size:13px;line-height:1.5}
.login-card label{gap:7px;color:#334155;font-size:13px}
.login-card input,.login-card .primary{min-height:44px;font-size:14px}
.brand-mark{background:var(--fc-blue);box-shadow:0 6px 16px rgba(36,116,245,.18)}

/* Shared desktop shell. */
body:not(.technician-mode) .sidebar{width:252px;border-color:var(--fc-line);background:#fff}
body:not(.technician-mode) .main{margin-left:252px}
.sidebar>header{min-height:76px;gap:12px;padding:12px 20px}
.brand-mark.small{width:42px;height:42px;flex:none;border-radius:12px;background:var(--fc-blue)}
.brand-mark.small svg{width:22px;height:22px}
.sidebar>header strong{color:var(--fc-ink);font-size:16px;line-height:1.2;font-weight:700}
.sidebar>header small{color:#62708a;font-size:10px;font-weight:650;letter-spacing:.06em}
.sidebar nav{padding:12px 10px 18px}
.sidebar nav section{margin:5px 0 13px}
.sidebar nav p{padding:9px 13px 7px;color:#8190a5;font-size:10px;letter-spacing:.06em}
.sidebar nav a{min-height:43px;gap:11px;border-radius:10px;padding:9px 13px;color:#52617b;transition:background .15s,color .15s}
.sidebar nav a:hover{background:#f3f7fc;color:var(--fc-blue);transform:none}
.sidebar nav a.active{background:var(--fc-blue-soft);color:#1768e8;font-weight:650}
.sidebar nav a span{font-size:13px;font-weight:inherit}
.sidebar nav a svg{width:18px;height:18px}
.sidebar>footer{min-height:72px;gap:11px;padding:11px 18px}
.sidebar>footer .avatar{width:38px;height:38px;background:var(--fc-blue);font-size:13px}
.sidebar>footer strong{color:var(--fc-ink);font-size:12px}
.sidebar>footer small{font-size:10px}
.topbar{height:70px;border-color:var(--fc-line);background:#fff;padding:0 26px;backdrop-filter:none}
.topbar strong{color:var(--fc-ink);font-size:18px;font-weight:650;letter-spacing:-.02em}
.topbar small{font-size:11px}
.topbar #today{display:none}
.topbar-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
.topbar-actions .icon{width:38px;height:38px}
.top-avatar{display:grid;width:38px;height:38px;place-items:center;border-radius:50%;background:var(--fc-blue);color:#fff;font-size:13px!important;font-weight:700}
.top-chevron{color:#64748b;font-size:18px!important}
.main{background:var(--fc-canvas)}
.content{gap:20px;padding:28px 26px 60px}
.page-title{align-items:center;gap:16px}
.page-title .eyebrow{display:none}
.page-title h1,.tasks-page .page-title h1{margin:0;color:var(--fc-ink);font-size:28px;font-weight:700;letter-spacing:-.03em;line-height:1.2}
.page-title>div>p:last-child,.tasks-page .page-title>div>p:last-child{margin:5px 0 0;color:var(--fc-muted);font-size:14px;line-height:1.35}

/* Shared controls, cards, tables, and dialogs. */
.primary,.tasks-page .page-title>.primary{min-width:0;min-height:42px;height:auto;border-radius:11px;background:var(--fc-blue);padding:9px 16px;color:#fff;font-size:13px;font-weight:700;box-shadow:0 4px 10px rgba(36,116,245,.18)}
.primary:hover{background:var(--fc-blue-hover)}
.secondary{min-height:40px;border-color:#d8e1ed;border-radius:10px;padding:8px 14px;color:#334155;font-size:12px}
.text-button{font-size:12px}
input,select,textarea{min-height:40px;border-color:#d8e1ed;border-radius:10px;background:#fff;padding:9px 12px;color:var(--fc-ink);font-size:13px}
.card,.metric,.table-wrap,.office-card,.attendance-employee-card,.attendance-daily,.attendance-detail-metrics article,.payroll-register,.payroll-rate-card,.payroll-summary,.task-list-card{border:1px solid var(--fc-line);border-radius:15px;background:#fff;box-shadow:var(--fc-shadow)}
.card{padding:20px}
.card h2{color:var(--fc-ink);font-size:17px}
.card>p,.card-head p{font-size:12px}
.metrics{gap:14px}
.metric{min-height:112px;padding:19px}
.metric span{font-size:12px}
.metric strong{font-size:26px}
.metric small{font-size:10px}
.metric i{width:42px;height:42px;border-radius:11px}
.recent button,.tracking-list button{min-height:55px;padding:11px 0}
.recent strong,.tracking-list strong{font-size:12px}
.recent small,.tracking-list small{font-size:10px}
.table-wrap{overflow-x:auto}
.table th{height:50px;background:#f8fafc;padding:12px 16px;color:#52617b;font-size:11px;font-weight:650;letter-spacing:.02em;text-transform:uppercase}
.table td{height:59px;padding:12px 16px;color:#52617b;font-size:12px}
.table td strong{color:var(--fc-ink)}
.table small{font-size:10px}
.status,.priority{padding:5px 10px;font-size:10px;font-weight:650}
.toolbar{gap:11px;border-color:var(--fc-line);border-radius:15px;padding:16px}
.toolbar label{min-height:42px;border-radius:10px}
.toolbar input{min-height:40px;font-size:13px}
.modern-native-select-trigger,.modern-date-trigger,.modern-filter-trigger{min-height:40px;border-color:#d8e1ed;border-radius:10px;font-size:13px}
.modern-native-select-menu,.modern-date-menu,.modern-filter-popover{border-color:var(--fc-line);border-radius:12px;box-shadow:0 16px 40px rgba(19,35,62,.16)}
.modal,.drawer{border:1px solid var(--fc-line);border-radius:16px;box-shadow:0 25px 70px rgba(15,23,42,.23)}
.modal>header,.drawer>header{padding:18px 22px}
.modal h2,.drawer h2{color:var(--fc-ink);font-size:19px}
.modal>form,.modal-body{padding:20px 22px}
.form-grid{gap:15px}
.form-grid label{color:#334155;font-size:12px}
.empty{font-size:12px}

/* Tasks follows the same type scale as the other modules. */
.content.tasks-page{gap:22px;padding:28px 26px 60px}
.tasks-page .task-filter-bar{grid-template-columns:minmax(220px,1.4fr) repeat(5,minmax(130px,.8fr)) auto;gap:10px}
.tasks-page .task-search,.tasks-page .task-filter-bar>.modern-native-select .modern-native-select-trigger{min-height:42px;border-radius:10px;background:#fff;box-shadow:none}
.tasks-page .task-search{padding:0 12px}
.tasks-page .task-search input,.tasks-page .task-filter-bar>.modern-native-select .modern-native-select-trigger{font-size:13px}
.tasks-page .task-view-switch{height:42px;border-radius:10px}
.tasks-page .task-view-switch button{height:40px;font-size:12px}
.tasks-page .task-type-tabs{justify-content:flex-start;border-radius:11px;padding:4px}
.tasks-page .task-type-tabs button{min-height:34px;padding:5px 12px;font-size:12px}
.tasks-page .tasks-table{min-width:1480px}
.tasks-page .tasks-table th{height:50px;padding:10px 12px;font-size:11px;font-weight:650;letter-spacing:.02em;text-transform:uppercase}
.tasks-page .tasks-table td{height:58px;padding:10px 12px;color:#52617b;font-size:12px}
.tasks-page .tasks-table td:first-child strong{max-width:210px;font-size:12px;font-weight:650}
.tasks-page .tasks-table td:first-child small{display:block;font-size:10px}
.tasks-page .task-area-badge{font-size:10px;font-weight:650}
.tasks-page .tasks-table .priority,.tasks-page .tasks-table .status{border-radius:999px;padding:5px 9px;font-size:10px;font-weight:650}
.tasks-page .task-list-card h3{font-size:16px}
.tasks-page .task-list-card p,.tasks-page .task-list-card dd{font-size:12px}
.task-editor-modal{width:min(680px,calc(100vw - 24px));border-radius:16px;background:#fff}
.task-editor-modal>header{min-height:66px;border-bottom:1px solid var(--fc-line);background:#fff;padding:16px 24px}
.task-editor-modal>header h2{font-size:19px}
.task-editor-modal>form{padding:18px 24px 24px}
.task-editor-modal .form-grid{gap:16px 13px}
.task-editor-modal .form-grid>label{gap:7px;font-size:12px;font-weight:650}
.task-editor-modal .form-grid input:not([type="hidden"]):not([type="checkbox"]),.task-editor-modal .form-grid textarea,.task-editor-modal .modern-native-select-trigger,.task-editor-modal .modern-date-trigger{min-height:42px;border-radius:10px;background:#fff;padding:9px 12px;font-size:13px;font-weight:400}
.task-editor-modal .form-grid textarea{min-height:76px;height:76px}
.task-editor-modal .modern-native-select-trigger,.task-editor-modal .modern-date-trigger{padding:0 12px}
.task-editor-modal .task-customer-field>span>em{font-size:11px}
.task-editor-modal .task-map-field strong{font-size:13px}
.task-editor-modal .task-map-field small{font-size:11px}
.task-editor-modal .task-map-field #task-location-map{height:260px;border-radius:12px}
.task-editor-modal .form-actions{bottom:-24px;margin:20px -24px -24px;padding:14px 24px;background:#fff}
.task-editor-modal .form-actions .primary,.task-editor-modal .form-actions .secondary{min-height:40px;border-radius:10px;font-size:12px}

/* Technician portal. */
.technician-mode .topbar{background:#fff}
.technician-mode .content{background:var(--fc-canvas)}
.technician-mode .tech-nav{background:#fff;border-color:var(--fc-line)}
.technician-mode .tech-nav a{font-size:10px;font-weight:600}
.technician-mode .tech-nav a.active{color:var(--fc-blue)}
.tech-page>header h1,.tech-title h1{color:var(--fc-ink);font-size:23px}
.tech-page>header p{font-size:12px}
.time-card,.verify-card,.daily-records,.salary-card,.profile-card,.profile-hero,.tech-stats article,.tech-empty,.tech-task-list button{border:1px solid var(--fc-line);border-radius:13px;background:#fff;box-shadow:var(--fc-shadow)}
.tech-action{min-height:46px;border-radius:11px;background:var(--fc-blue);font-size:14px}
.tech-action:not(:disabled):hover{background:var(--fc-blue-hover)}
.tech-stats span{font-size:11px}
.tech-task-list strong,.profile-card strong,.salary-card strong{font-size:13px}

@media(max-width:1500px) and (min-width:761px){
  .tasks-page .task-filter-bar{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tasks-page .task-search{grid-column:span 2}
}
@media(max-width:1050px) and (min-width:761px){
  body:not(.technician-mode) .sidebar{width:220px}
  body:not(.technician-mode) .main{margin-left:220px}
  .sidebar>header{padding-inline:13px}
  .sidebar>header strong{font-size:14px}
  .sidebar nav a span{font-size:12px}
  .content,.content.tasks-page{padding-inline:18px}
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  body:not(.technician-mode) .sidebar{width:min(300px,85vw)}
  body:not(.technician-mode) .main{margin-left:0}
  .topbar{height:64px;padding:0 13px}
  .topbar strong{font-size:14px}
  .top-avatar{width:34px;height:34px;font-size:12px!important}
  .content,.content.tasks-page{gap:16px;padding:17px 12px calc(86px + env(safe-area-inset-bottom))}
  .page-title{align-items:flex-start}
  .page-title h1,.tasks-page .page-title h1{font-size:22px}
  .page-title>div>p:last-child,.tasks-page .page-title>div>p:last-child{font-size:12px}
  .page-title>.primary{min-height:38px;padding:8px 11px;font-size:11px}
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .metric{min-height:94px;padding:14px}
  .metric strong{font-size:21px}
  .metric span{font-size:11px}
  .card{padding:16px}
  .card h2{font-size:16px}
  .table th{font-size:10px}
  .table td{font-size:11px}
  .modal-layer{padding:10px}
  .modal,.drawer{border-radius:14px}
  .modal>header,.drawer>header{padding:15px 17px}
  .modal>form,.modal-body{padding:17px}
  .tasks-page .task-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .tasks-page .task-search{grid-column:1/-1}
  .tasks-page .task-search input,.tasks-page .task-filter-bar>.modern-native-select .modern-native-select-trigger{font-size:12px}
  .tasks-page .task-view-switch{grid-column:1/-1}
  .tasks-page .task-type-tabs button{font-size:12px}
  .task-editor-modal{width:100%;max-height:calc(100dvh - 20px)}
  .task-editor-modal>header{min-height:58px;padding:13px 17px}
  .task-editor-modal>header h2{font-size:17px}
  .task-editor-modal>form{padding:14px 17px 17px}
  .task-editor-modal .form-grid{grid-template-columns:1fr;gap:13px}
  .task-editor-modal .form-grid>.span-2{grid-column:1}
  .task-editor-modal .form-grid>label{font-size:12px}
  .task-editor-modal .form-grid input:not([type="hidden"]):not([type="checkbox"]),.task-editor-modal .form-grid textarea,.task-editor-modal .modern-native-select-trigger,.task-editor-modal .modern-date-trigger{min-height:42px;font-size:13px}
  .task-editor-modal .task-map-field #task-location-map{height:220px}
  .task-editor-modal .form-actions{bottom:-17px;margin:16px -17px -17px;padding:12px 17px}
  .technician-mode .content{padding:14px 12px calc(90px + env(safe-area-inset-bottom))}
}
@media(max-width:390px){
  .page-title h1,.tasks-page .page-title h1{font-size:20px}
  .page-title>div>p:last-child,.tasks-page .page-title>div>p:last-child{font-size:11px}
  .metrics{grid-template-columns:1fr}
  .task-editor-modal .task-customer-field>span{align-items:flex-start;flex-direction:column}
}
