/* PROFITECH Design System v18.0 — shared interaction and data components */
body.pt-ds-ready :is(a,button,input,select,textarea,summary){font-family:var(--pt-font)}
body.pt-ds-ready :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid rgba(53,107,145,.28)!important;outline-offset:2px}
body.pt-ds-ready :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){
  width:auto;max-width:100%;min-height:var(--pt-control-height)!important;padding:9px 12px!important;
  border:1px solid var(--pt-border-strong)!important;border-radius:var(--pt-radius-sm)!important;
  background:#fff!important;color:var(--pt-ink)!important;box-shadow:none!important;
  font-size:13px!important;line-height:1.5!important;transition:border-color .15s,box-shadow .15s;
}
body.pt-ds-ready :is(input,select,textarea):focus{border-color:#75a991!important;box-shadow:0 0 0 3px rgba(50,135,106,.11)!important;outline:0!important}
body.pt-ds-ready input::placeholder,body.pt-ds-ready textarea::placeholder{color:#9aa7a1!important}
body.pt-ds-ready textarea{min-height:88px!important;resize:vertical}
body.pt-ds-ready input[type=checkbox],body.pt-ds-ready input[type=radio]{accent-color:var(--pt-green-700)}
body.pt-ds-ready label{color:#46564f;font-size:12px;font-weight:700;line-height:1.6}
body.pt-ds-ready :is(.field,.form-group,.form-field){min-width:0}
body.pt-ds-ready :is(.field,.form-group,.form-field)>label{display:block;margin:0 0 6px}
body.pt-ds-ready :is(.form-grid,.fields-grid,.filters-grid){gap:14px}
body.pt-ds-ready :is(button,.btn,.pt-btn,a.button,input[type=submit],input[type=button]){
  min-height:38px;border-radius:9px!important;font-family:var(--pt-font)!important;
  font-size:12px!important;font-weight:750!important;line-height:1.45!important;
  transition:background .15s,border-color .15s,box-shadow .15s,transform .15s;
}
body.pt-ds-ready :is(button,.btn,.pt-btn,a.button,input[type=submit],input[type=button]):not(:disabled):hover{transform:translateY(-1px)}
body.pt-ds-ready :is(button,.btn,.pt-btn,input[type=submit],input[type=button]):disabled{opacity:.52;cursor:not-allowed}
body.pt-ds-ready :is(button,.btn,.pt-btn,a.button,input[type=submit],input[type=button]):not(.danger):not(.delete):not(.logout):not(.secondary):not(.outline):not(.light){
  box-shadow:0 2px 5px rgba(28,74,56,.07)
}
body.pt-ds-ready :is(.btn,.pt-btn,.primary,button.primary,input[type=submit]){
  background:var(--pt-green-800);border-color:var(--pt-green-800);color:#fff
}
body.pt-ds-ready :is(.btn,.pt-btn,.primary,button.primary,input[type=submit]):hover{background:var(--pt-green-900);border-color:var(--pt-green-900)}
body.pt-ds-ready :is(.secondary,.btn-secondary,.pt-btn-secondary,button.secondary){background:var(--pt-blue-100)!important;border:1px solid #d5e1e9!important;color:var(--pt-blue-900)!important;box-shadow:none!important}
body.pt-ds-ready :is(.outline,.btn-outline,.pt-btn-outline,button.outline){background:#fff!important;border:1px solid var(--pt-border-strong)!important;color:var(--pt-ink)!important;box-shadow:none!important}
body.pt-ds-ready :is(.danger,.delete,.btn-danger,button.danger){background:var(--pt-danger-bg)!important;border:1px solid #efd0cc!important;color:var(--pt-danger)!important;box-shadow:none!important}
body.pt-ds-ready :is(.logout,button.logout){background:var(--pt-surface-soft)!important;color:var(--pt-muted)!important;border:1px solid var(--pt-border)!important}
body.pt-ds-ready :is(.box,.panel,.card,.section-card,.report-card,.settings-card,.form-card,.document-card,.stat,.stat-card){
  background:var(--pt-surface);border:1px solid var(--pt-border);border-radius:var(--pt-radius-lg);box-shadow:var(--pt-shadow-xs)
}
body.pt-ds-ready .box{padding:21px}
body.pt-ds-ready :is(.box,.panel,.card) :is(h2,h3){margin-top:0}
body.pt-ds-ready :is(.table-wrap,.table-responsive,.table-container,.responsive-table){
  max-width:100%;overflow:auto;border:1px solid var(--pt-border);border-radius:var(--pt-radius-md);background:#fff;scrollbar-width:thin;scrollbar-color:#c2d0c8 #f4f7f5
}
body.pt-ds-ready table{width:100%;border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}
body.pt-ds-ready table th{
  position:sticky;top:0;z-index:1;background:#f0f4f2!important;color:#344b41!important;
  font-size:11px!important;font-weight:800!important;white-space:nowrap;border-bottom:1px solid var(--pt-border)!important
}
body.pt-ds-ready table td{font-size:12px!important;color:#33423b;vertical-align:middle}
body.pt-ds-ready :is(table th,table td){padding:11px 13px!important;border-bottom:1px solid #edf1ef}
body.pt-ds-ready table tbody tr:last-child td{border-bottom:0}
body.pt-ds-ready table tbody tr:hover td{background:#f8faf9}
body.pt-ds-ready table :is(a,button){white-space:nowrap}
body.pt-ds-ready :is(.badge,.status,.pill,.tag,.chip){
  display:inline-flex;align-items:center;justify-content:center;gap:5px;
  min-height:23px;padding:3px 9px;border-radius:999px;font-size:10px;font-weight:800;line-height:1.45
}
body.pt-ds-ready :is(.success,.status.active,.badge.success,.badge.ok){background:var(--pt-success-bg);color:var(--pt-success)}
body.pt-ds-ready :is(.warning,.status.pending,.badge.warning){background:var(--pt-warning-bg);color:var(--pt-warning)}
body.pt-ds-ready :is(.error,.danger,.status.failed,.badge.danger){background:var(--pt-danger-bg);color:var(--pt-danger)}
body.pt-ds-ready :is(.info,.badge.info){background:var(--pt-info-bg);color:var(--pt-info)}
body.pt-ds-ready :is(.message,.alert,.inline-alert,.notice,.info-box){
  border-radius:var(--pt-radius-md);padding:12px 15px;line-height:1.8;font-size:12px;border:1px solid var(--pt-border);background:#fff;color:var(--pt-ink)
}
body.pt-ds-ready :is(.message.success,.alert.success,.inline-alert.success){background:var(--pt-success-bg);border-color:#cfe4d6;color:#245f40}
body.pt-ds-ready :is(.message.error,.alert.error,.inline-alert.danger){background:var(--pt-danger-bg);border-color:#efd3cf;color:#8f3832}
body.pt-ds-ready :is(.message.warning,.alert.warning,.inline-alert.warning){background:var(--pt-warning-bg);border-color:#efdfbf;color:#7e571b}
body.pt-ds-ready :is(.tabs,.tab-list,.nav-tabs){display:flex;align-items:center;gap:6px;flex-wrap:wrap;border-bottom:1px solid var(--pt-border);padding:0 0 9px}
body.pt-ds-ready :is(.tabs,.tab-list,.nav-tabs) :is(a,button){background:transparent!important;color:var(--pt-muted)!important;border:1px solid transparent!important;box-shadow:none!important;padding:8px 12px}
body.pt-ds-ready :is(.tabs,.tab-list,.nav-tabs) :is(.active,[aria-selected=true]){background:var(--pt-green-100)!important;color:var(--pt-green-900)!important;border-color:#d5e8dc!important}
body.pt-ds-ready :is(.modal,.modal-content,.modal-box,.dialog){
  border-radius:var(--pt-radius-xl);border:1px solid var(--pt-border);box-shadow:var(--pt-shadow-lg)
}
body.pt-ds-ready :is(.empty,.empty-state,.no-data){color:var(--pt-muted);padding:25px 18px;text-align:center;line-height:1.8}
body.pt-ds-ready :is(.toolbar,.filters,.filter-bar,.page-actions,.actions-row){
  display:flex;align-items:center;gap:9px;flex-wrap:wrap
}
body.pt-ds-ready hr{border:0;border-top:1px solid var(--pt-border);margin:18px 0}
body.pt-ds-ready a{color:var(--pt-blue-700)}

/* High-specificity bridge: the legacy baseline remains available, but these shared rules own the final presentation. */
body.pt-ds-ready{font-size:14px!important;line-height:1.7!important}
body.pt-ds-ready :is(.box,.panel,.card,.section-card,.report-card,.settings-card,.form-card,.document-card,.stat,.stat-card,.summary-card){
  background:var(--pt-surface)!important;border:1px solid var(--pt-border)!important;
  border-radius:var(--pt-radius-lg)!important;box-shadow:var(--pt-shadow-xs)!important;color:var(--pt-ink)!important
}
body.pt-ds-ready .box{padding:20px!important}
body.pt-ds-ready :is(.stat,.summary-card){padding:16px!important;text-align:start!important;border-bottom:1px solid var(--pt-border)!important}
body.pt-ds-ready :is(.stat-label,.label,.summary-card small){color:var(--pt-muted)!important;font-size:11px!important}
body.pt-ds-ready :is(.stat-value,.value,.summary-card strong){color:var(--pt-green-900)!important;font-size:clamp(20px,2vw,27px)!important;font-weight:850!important}
body.pt-ds-ready :is(button,.btn,.pt-btn,a.button,input[type=submit],input[type=button]){
  min-height:38px!important;padding:8px 13px!important;border-radius:9px!important;
  font-family:var(--pt-font)!important;font-size:12px!important;font-weight:750!important;
  line-height:1.45!important;box-shadow:none!important
}
body.pt-ds-ready :is(button,.btn,.pt-btn,input[type=submit],input[type=button]):not(.secondary):not(.outline):not(.light):not(.danger):not(.delete):not(.logout){
  background:var(--pt-green-800)!important;border:1px solid var(--pt-green-800)!important;color:#fff!important
}
body.pt-ds-ready :is(.secondary,button.secondary,.btn-secondary,.pt-btn-secondary){background:var(--pt-blue-100)!important;border:1px solid #d5e1e9!important;color:var(--pt-blue-900)!important}
body.pt-ds-ready :is(.outline,.btn-outline,.pt-btn-outline,button.outline,.pt-btn.light){background:#fff!important;border:1px solid var(--pt-border-strong)!important;color:var(--pt-ink)!important}
body.pt-ds-ready :is(.danger,.delete,.btn-danger,button.danger){background:var(--pt-danger-bg)!important;border:1px solid #efd0cc!important;color:var(--pt-danger)!important}
body.pt-ds-ready :is(.logout,button.logout){background:var(--pt-surface-soft)!important;border:1px solid var(--pt-border)!important;color:var(--pt-muted)!important}
body.pt-ds-ready label{font-size:12px!important;font-weight:750!important;color:#46564f!important;margin-bottom:6px!important}
body.pt-ds-ready :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){
  width:100%;min-height:var(--pt-control-height)!important;padding:9px 12px!important;
  border:1px solid var(--pt-border-strong)!important;border-radius:var(--pt-radius-sm)!important;
  background:#fff!important;color:var(--pt-ink)!important;font-size:13px!important;line-height:1.5!important
}
body.pt-ds-ready input[type=checkbox],body.pt-ds-ready input[type=radio]{width:auto!important;min-height:0!important}
body.pt-ds-ready table{background:#fff!important;font-size:12px!important}
body.pt-ds-ready table th{background:#f0f4f2!important;color:#344b41!important;font-size:11px!important;font-weight:800!important;padding:11px 13px!important;border-bottom:1px solid var(--pt-border)!important}
body.pt-ds-ready table td{background:transparent;color:#33423b!important;font-size:12px!important;padding:11px 13px!important;border-bottom:1px solid #edf1ef!important;vertical-align:middle!important}
body.pt-ds-ready table tbody tr:hover td{background:#f8faf9!important}
body.pt-ds-ready :is(.table-wrap,.table-responsive,.table-container){border:1px solid var(--pt-border)!important;border-radius:var(--pt-radius-md)!important;background:#fff!important}
body.pt-ds-ready :is(.tabs a,.tabs button,.nav-tabs a,.nav-tabs button){background:#fff!important;color:var(--pt-muted)!important;border:1px solid var(--pt-border)!important}
body.pt-ds-ready :is(.tabs .current,.tabs .active,.nav-tabs .active,.tabs [aria-selected=true]){background:var(--pt-green-100)!important;color:var(--pt-green-900)!important;border-color:#d5e8dc!important}
body.pt-ds-ready :is(.message,.alert,.inline-alert,.notice,.info-box){font-size:12px!important;border-radius:var(--pt-radius-md)!important}
body.pt-ds-ready :is(.success,.status.active,.badge.success,.badge.ok){background:var(--pt-success-bg)!important;color:var(--pt-success)!important}
body.pt-ds-ready :is(.warning,.status.pending,.badge.warning){background:var(--pt-warning-bg)!important;color:var(--pt-warning)!important}
body.pt-ds-ready :is(.error,.danger,.status.failed,.badge.danger){background:var(--pt-danger-bg)!important;color:var(--pt-danger)!important}

/* Preserve the intended control hierarchy after the generic legacy button baseline. */
body.pt-ds-ready .pt-appbar .pt-square-btn{
  background:#fff!important;border:1px solid var(--pt-border)!important;color:var(--pt-blue-800)!important;
  box-shadow:none!important;padding:0!important;min-height:40px!important
}
body.pt-ds-ready .pt-global-search-trigger{
  background:#fff!important;border:1px solid var(--pt-border)!important;color:var(--pt-blue-900)!important;
  box-shadow:none!important;padding:7px 11px!important
}
body.pt-ds-ready .pt-quick-create-trigger{
  background:var(--pt-green-800)!important;border:1px solid var(--pt-green-800)!important;color:#fff!important;
  box-shadow:none!important;padding:7px 11px!important
}
body.pt-ds-ready .pt-sidebar :is(.pt-sidebar-hide,.pt-sidebar-compact-toggle){
  background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.13)!important;color:#dbe7ee!important;
  box-shadow:none!important;padding:0!important
}

/* v18.0.1 — consistent action hierarchy in registers and document tables. */
body.pt-ds-ready :is(a,button,input[type=submit]).pt-action-view{background:#f4f7fa!important;border:1px solid #d7e1e9!important;color:#31536c!important;box-shadow:none!important}
body.pt-ds-ready :is(a,button,input[type=submit]).pt-action-edit{background:#eaf2f8!important;border:1px solid #d3e1eb!important;color:#285b7c!important;box-shadow:none!important}
body.pt-ds-ready :is(a,button,input[type=submit]).pt-action-cancel{background:#fff5e7!important;border:1px solid #f0dfc2!important;color:#8a5a17!important;box-shadow:none!important}
body.pt-ds-ready :is(a,button,input[type=submit]).pt-action-delete{background:#f9ecea!important;border:1px solid #edcfca!important;color:#a7433b!important;box-shadow:none!important}
body.pt-ds-ready :is(a,button,input[type=submit]).pt-action-approve{background:#eaf5ee!important;border:1px solid #cfe4d6!important;color:#236846!important;box-shadow:none!important}
body.pt-ds-ready :is(a,button,input[type=submit]).pt-action-reject{background:#f9ecea!important;border:1px solid #edcfca!important;color:#a7433b!important;box-shadow:none!important}
body.pt-ds-ready :is(td .pt-action-view,td .pt-action-edit,td .pt-action-cancel,td .pt-action-delete,td .pt-action-approve,td .pt-action-reject){min-height:31px!important;padding:5px 10px!important;border-radius:8px!important;font-size:11px!important;font-weight:800!important;text-decoration:none!important;white-space:nowrap}
body.pt-ds-ready .pt-report-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
body.pt-ds-ready .pt-report-actions form{display:inline-flex;margin:0}
body.pt-ds-ready :is(.badge,.status-badge,.pt-status).approved,body.pt-ds-ready :is(.badge,.status-badge,.pt-status)[data-status="approved"]{background:#eaf5ee!important;color:#236846!important;border:1px solid #cfe4d6!important}
body.pt-ds-ready :is(.badge,.status-badge,.pt-status).pending,body.pt-ds-ready :is(.badge,.status-badge,.pt-status)[data-status="pending"]{background:#fbf3e4!important;color:#94651e!important;border:1px solid #efdfc0!important}
body.pt-ds-ready :is(.badge,.status-badge,.pt-status).rejected,body.pt-ds-ready :is(.badge,.status-badge,.pt-status).void,body.pt-ds-ready :is(.badge,.status-badge,.pt-status)[data-status="rejected"]{background:#f9ecea!important;color:#a7433b!important;border:1px solid #edcfca!important}
