/* PHP adaptation of Tailwindadmin React v1.0.0 (MIT).
   Original token/layout references: src/css/globals.css, layouts/container.css,
   ProfileWelcome.tsx and TopCards.tsx. No browser build step or Node runtime. */
:root{--primary:#be981b;--primary-hover:#a58216;--soft:#faf4df;--ink:#202939;--muted:#657087;--border:#e5e9f0;--bg:#f5f7fb;--surface:#fff;--danger:#c63240;--green:#17765e;--radius:14px;--shadow:0 2px 8px rgba(35,47,70,.035);font-family:'DM Sans',Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.6}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}h1{font-size:28px;line-height:1.25;letter-spacing:-.9px;margin-bottom:9px}h2{font-size:18px;line-height:1.4;letter-spacing:-.3px;margin-bottom:6px}h3{font-size:16px}p{margin-bottom:16px}small{font-size:12px}svg{vertical-align:middle;flex-shrink:0}img{max-width:100%}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #be981b70;outline-offset:3px}[hidden]{display:none!important}.muted{color:var(--muted)}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.9px;color:var(--muted);margin-bottom:10px}.small-text{font-size:12px}.skip-link{position:fixed;top:-100px;left:12px;z-index:200;background:var(--ink);color:white;padding:10px}.skip-link:focus{top:10px}
.sidebar{position:fixed;inset:0 auto 0 0;width:258px;background:#111315;color:#b7bec8;display:flex;flex-direction:column;z-index:50}.brand{display:flex;align-items:center;gap:11px;min-height:95px;padding:20px 24px;color:#fff;font-size:15px;font-weight:720;letter-spacing:-.3px}.brand small{display:block;color:#a98b30;letter-spacing:2px;font-size:8px;margin-top:3px}.brand-mark{display:grid;place-items:center;background:var(--primary);color:#151515;font-size:14px;font-weight:800;border-radius:11px;width:38px;height:38px;flex-shrink:0;letter-spacing:-1px}.nav-scroll{overflow-y:auto;flex:1;padding:0 16px 20px;scrollbar-width:thin}.nav-heading{margin:23px 12px 10px;color:#818b9b;text-transform:uppercase;font-size:9px;font-weight:750;letter-spacing:1.4px}.nav-heading:first-child{margin-top:14px}.sidebar nav{display:flex;flex-direction:column;gap:3px}.sidebar nav a{display:flex;align-items:center;gap:12px;padding:10px 13px;border-radius:8px;font-size:12px;min-height:41px}.sidebar nav a:hover{background:#ffffff09;color:white}.sidebar nav a[aria-current]{color:#f0cf64;background:#be981b22;box-shadow:inset 3px 0 #be981b}.sidebar nav a[aria-current] svg{color:#d7b74a}.sidebar-person{border-top:1px solid #ffffff12;padding:18px 20px;display:flex;align-items:center;gap:10px}.sidebar-person>div{min-width:0;flex:1}.sidebar-person strong{font-size:11px;color:#e0e3e8;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-person small{font-size:10px;color:#828b98;display:block}.avatar{width:36px;height:36px;border-radius:50%;background:#f3e5b7;color:#70560b;display:inline-grid;place-items:center;font-weight:700;flex-shrink:0}.avatar.small{width:30px;height:30px;font-size:12px}.sidebar .avatar{background:#332d19;color:#dfc776}.page-wrapper{margin-left:258px;min-height:100vh}.topbar{height:76px;border-bottom:1px solid var(--border);background:var(--surface);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 35px;position:sticky;top:0;z-index:30}.breadcrumbs{display:flex;gap:13px;font-size:12px}.breadcrumbs span{color:#8993a4}.breadcrumbs strong{font-weight:550}.topbar-actions{display:flex;align-items:center;gap:12px;font-size:11px}.header-name{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.website-link{color:var(--muted)}.website-link:hover{color:var(--ink)}.header-divider{height:22px;width:1px;background:var(--border);margin:0 6px}.icon-button{border:0;background:transparent;color:inherit;display:inline-grid;place-items:center;min-width:34px;height:34px;border-radius:7px;font-size:21px}.icon-button:hover{background:#8895a51a}.mobile-only{display:none}#main{max-width:1540px;margin:auto;padding:34px 36px 20px;outline:none}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.page-heading .muted{margin:0;font-size:12px}.date-chip{font-size:11px;white-space:nowrap;padding:7px 12px;border:1px solid var(--border);border-radius:7px;background:white;color:var(--muted)}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:25px;min-width:0}.panel-heading{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:24px}.panel-heading h2{font-size:16px}.panel-heading p{font-size:11px;margin:0}.section-title{display:flex;align-items:center;justify-content:space-between;margin:26px 0 14px}.section-title h2{font-size:15px;margin:0}.welcome-strip{border-radius:var(--radius);background:#f5eed9;border:1px solid #ebe0bb;display:flex;justify-content:space-between;padding:28px 32px;min-height:204px;overflow:hidden;position:relative}.welcome-strip h2{font-size:24px;letter-spacing:-.7px;margin-top:7px}.welcome-strip p{font-size:12px;color:#6c6655;margin:8px 0 20px}.welcome-strip .eyebrow{color:#8d7836}.welcome-art{align-self:center;width:220px;height:132px;position:relative;flex-shrink:0;margin-right:35px}.art-window{background:#fffefa;border:1px solid #e5d9ac;border-radius:10px;padding:10px 13px;box-shadow:14px 16px 0 #e8dcad;width:190px;height:120px;transform:rotate(-6deg)}.art-window>span{display:inline-block;width:5px;height:5px;border-radius:50%;background:#d4c99f;margin-right:4px}.art-bars{display:flex;gap:11px;align-items:flex-end;height:65px;margin:8px 15px;border-bottom:1px solid #e8e4d5}.art-bars i{background:#d0b453;width:21px;border-radius:3px 3px 0 0;height:40%}.art-bars i:nth-child(2){height:68%;background:#e5d697}.art-bars i:nth-child(3){height:50%}.art-bars i:nth-child(4){height:90%;background:#2d3938}.art-bars i:nth-child(5){height:72%}.art-badge{position:absolute;bottom:-5px;right:6px;width:43px;height:43px;border-radius:12px;background:#2d3938;color:#f4e8b8;display:grid;place-items:center;font-size:24px;box-shadow:0 5px 20px #2d393822}.stats-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:15px}.stat-card{border:1px solid transparent;border-radius:12px;padding:21px 17px;min-height:135px;position:relative;transition:transform .15s}.stat-card:hover{transform:translateY(-2px);border-color:#00000012}.stat-card img{width:34px;height:34px;margin-bottom:11px;object-fit:contain}.stat-card .stat-value{font-size:24px;font-weight:730;line-height:1.3;display:block;letter-spacing:-.5px}.stat-card .stat-label{font-size:10px;font-weight:550;color:#586277;display:block;margin-top:3px}.tint-purple{background:#eee9fb}.tint-green{background:#e0f3ec}.tint-red{background:#fcebed}.tint-blue{background:#e5effc}.tint-gold{background:#f8f0d7}.tint-teal{background:#e1f2f4}.dashboard-grid{display:grid;grid-template-columns:1.65fr 1fr;gap:22px;margin-top:22px}.bar-chart{height:192px;display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:9px;align-items:end;border-bottom:1px solid var(--border);padding:10px 0 0}.bar-column{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:8px;min-width:0}.bar-column>span{font-size:9px;color:var(--muted);white-space:nowrap;order:2;padding-bottom:9px}.bar-fill{background:#c3a33c;border-radius:5px 5px 0 0;width:72%;min-height:2px;max-height:145px;position:relative}.bar-fill:hover{background:#9e7c12}.bar-fill b{position:absolute;top:-19px;font-size:9px;color:#586277;left:50%;transform:translateX(-50%);font-weight:500}.chart-legend{font-size:11px;color:var(--muted);margin-top:17px;display:flex;align-items:center;gap:7px}.legend-dot{width:7px;height:7px;border-radius:50%;background:var(--primary)}#chart-total{margin-left:auto}.finance-row{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid var(--border);padding:15px 0}.finance-row:first-child{padding-top:0}.finance-row span{font-size:12px;color:var(--muted)}.finance-row strong{font-size:17px;white-space:nowrap}#finance-summary{margin-bottom:22px}.text-link{font-size:11px;color:#907019;font-weight:650;white-space:nowrap}.activity-row,.lead-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #edf0f5;font-size:12px}.activity-row:last-child,.lead-row:last-child{border:0}.activity-row small,.lead-row small{display:block;color:var(--muted);font-size:10px}.activity-dot{width:9px;height:9px;border-radius:50%;background:#c0a243;flex-shrink:0}.activity-row>div{flex:1}.activity-row time{color:var(--muted);font-size:10px}.workspace-footer{margin-top:42px;padding-top:15px;border-top:1px solid var(--border);display:flex;justify-content:space-between;color:#8791a2;font-size:10px}.button{border:1px solid #dfe4ec;background:#fff;color:var(--ink);border-radius:7px;padding:9px 14px;display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:39px;font-size:11px;font-weight:620;line-height:1.4;white-space:nowrap}.button:hover{background:#f6f7fa}.button.primary{background:var(--primary);color:#171a1d;border-color:var(--primary)}.button.primary:hover{background:#d0ae39}.button.danger{background:var(--danger);border-color:var(--danger);color:white}.button.subtle{background:transparent;border-color:transparent;color:var(--muted)}.button.small{padding:7px 10px;min-height:32px;font-size:10px}.button.text-danger{color:var(--danger);border-color:transparent;background:transparent}.badge{display:inline-block;padding:3px 9px;border-radius:5px;background:#eef1f7;color:#5b687e;font-size:10px;font-weight:600;line-height:1.6;white-space:nowrap}.badge.success{color:#17765e;background:#e3f5ed}.badge.error{color:#b63340;background:#fce9ed}.badge.gold{color:#8d7018;background:#fbf1d4}.badge.blue{color:#365b9a;background:#e9effb}.table-panel{padding:0;overflow:hidden}.resource-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:21px 23px}.search-wrap{display:flex;align-items:center;gap:8px;margin-right:auto;position:relative;min-width:200px;max-width:360px;flex:1}.search-wrap>span{position:absolute;left:12px;color:#8b97a9}.search-wrap svg{width:14px;height:14px}.search-wrap input{padding-left:35px!important}.resource-toolbar select{width:auto;max-width:170px}.table-scroll{overflow-x:auto}.data-table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}.data-table th{background:#f8f9fc;color:#6a7589;text-align:left;font-size:10px;font-weight:650;letter-spacing:.2px;padding:13px 20px;border-block:1px solid var(--border)}.data-table th button{border:0;background:none;padding:0;color:inherit;font-size:inherit;font-weight:inherit;text-align:left}.data-table td{padding:16px 20px;border-bottom:1px solid #edf0f4;max-width:280px;overflow:hidden;text-overflow:ellipsis}.data-table td:first-child{font-weight:600}.data-table td:last-child{overflow:visible}.data-table tr:hover{background:#fcfcfe}.row-actions{display:flex;gap:3px;align-items:center}.row-actions button{border:0;background:transparent;font-size:10px;padding:5px 7px;border-radius:5px;color:#8c6d13;white-space:nowrap}.row-actions button:hover{background:#f8f1df}.row-actions button[data-delete]{color:var(--danger)}.table-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 23px;font-size:11px}.table-footer>div{display:flex;align-items:center;gap:12px}.empty-state{text-align:center;padding:55px 20px}.empty-state p{font-size:12px;margin:0}.empty-state h3{margin-bottom:5px}.empty-icon{display:grid;place-items:center;margin:0 auto 14px;background:#f0f2f8;color:#8792a3;border-radius:12px;width:45px;height:45px}.loading-line{padding:14px 24px;background:#fbf8ec;color:#826b24;font-size:12px}.loading-line:before{content:'';display:inline-block;width:8px;height:8px;background:#c7a63c;border-radius:50%;margin-right:10px;animation:pulse 1s infinite}.skeleton-card{padding:30px;color:var(--muted);font-size:12px;grid-column:1/-1;background:#fff;border-radius:10px}.tab-bar{display:flex;gap:10px;margin-bottom:20px;border-bottom:1px solid var(--border)}.tab-bar a{font-size:12px;padding:10px 14px;border-bottom:2px solid transparent}.tab-bar a[aria-current]{border-color:var(--primary);color:#896812;font-weight:650}.split-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:24px}.info-panel{background:#f8f2df}.info-panel h2{margin-top:20px}.info-panel p{font-size:12px;color:#72694f}.notice{border:1px solid #e6dbad;border-radius:8px;background:#fff8df;color:#715916;padding:13px 15px;font-size:12px;line-height:1.6;margin-bottom:20px;overflow-wrap:anywhere}.notice.error{color:#a42b38;background:#fff0f2;border-color:#f0ccd2}.notice.success{color:#176c53;background:#ecf9f3;border-color:#bfe6d4}#page-alert>div{display:flex;gap:15px;align-items:flex-start}#page-alert button{margin-left:auto;flex-shrink:0}.toast-region{position:fixed;bottom:24px;right:24px;z-index:150;width:min(400px,calc(100vw - 32px));display:grid;gap:10px}.toast{background:#fff;box-shadow:0 10px 40px #1d28332b;border:1px solid #c8e4d7;border-left:4px solid #288563;border-radius:9px;padding:16px;font-size:12px;display:flex;align-items:flex-start;gap:12px;overflow-wrap:anywhere}.toast.error{border-left-color:var(--danger)}.toast button{margin-left:auto;flex-shrink:0}dialog{border:1px solid var(--border);border-radius:16px;padding:0;width:min(760px,calc(100vw - 28px));max-height:90vh;box-shadow:0 24px 100px #131c3940;color:var(--ink)}dialog::backdrop{background:#14203080;backdrop-filter:blur(2px)}#editor-form{padding:28px}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:24px}.dialog-heading .eyebrow{margin-bottom:4px}.dialog-heading h2{font-size:21px;margin:0}.dialog-footer{border-top:1px solid var(--border);margin-top:25px;padding-top:19px;display:flex;justify-content:flex-end;gap:9px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.form-grid>.wide{grid-column:1/-1}label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;min-width:0}label small{font-size:10px;font-weight:400;color:var(--muted);line-height:1.5}input:not([type=checkbox]),select,textarea{width:100%;min-width:0;border:1px solid #dce2ec;border-radius:7px;background:#fff;color:var(--ink);padding:10px 12px;font-size:12px;min-height:40px;outline-offset:0}input::placeholder,textarea::placeholder{color:#949fb0}textarea{resize:vertical;min-height:100px}input[readonly]{background:#f5f7fb;color:var(--muted)}.upload-line{display:flex;align-items:center;gap:10px}.upload-line input{font-size:10px!important}.image-preview{max-height:90px;max-width:150px;object-fit:contain;border-radius:5px;display:block}.items-editor{padding:17px;background:#f8f9fc;border:1px solid var(--border);border-radius:10px}.item-row{display:grid;grid-template-columns:1fr 65px 100px 30px;gap:7px;margin-bottom:9px;align-items:center}.item-row input{font-size:11px;padding:8px}.items-heading{font-size:10px;color:var(--muted);margin-bottom:10px;display:flex;justify-content:space-between}.invoice-total{font-weight:700;display:flex;justify-content:space-between;padding:10px 0}.confirm-content{padding:30px}#confirm-dialog{max-width:430px}.confirm-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#fff0d9;color:#9e6515;font-size:22px;font-weight:700;margin-bottom:16px}.confirm-content p{font-size:13px}.health-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid var(--border)}.health-row small{display:block;color:var(--muted);margin-top:4px}.login-body{background:#fff}.login-grid{display:grid;grid-template-columns:1fr 1fr;min-height:100vh;max-width:none!important;padding:0!important}.login-brand{background:#171b20;color:white;padding:70px 70px;display:flex;flex-direction:column;justify-content:center;position:relative}.login-brand .brand-mark{margin-bottom:60px;width:50px;height:50px}.login-brand .eyebrow{color:#d1b358}.login-brand h1{font-size:clamp(38px,4.4vw,70px);line-height:1.1;letter-spacing:-2px;margin-top:10px;margin-bottom:25px}.login-brand>p:not(.eyebrow){color:#a9b0bb;max-width:390px;font-size:14px}.login-foot{color:#657080;font-size:11px;position:absolute;bottom:35px}.login-form{padding:50px 13%;display:flex;flex-direction:column;justify-content:space-between}.login-form>div{padding:55px 0}.login-form h2{font-size:30px;margin-bottom:10px}.login-form p{font-size:13px}.login-form form{display:grid;gap:20px;margin:30px 0 20px}.login-form .button{font-size:13px;padding:13px}.login-form>a{font-size:12px}@keyframes pulse{50%{opacity:.35}}@media(min-width:1700px){#main{padding-inline:60px}}@media(max-width:1250px){.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1.4fr 1fr}.sidebar{width:235px}.page-wrapper{margin-left:235px}#main{padding:28px 26px}.topbar{padding:0 26px}.welcome-art{margin-right:0;width:185px}.brand{padding-inline:20px;font-size:13px}}@media(max-width:1023px){.sidebar{transform:translateX(-100%);width:258px;transition:transform .2s}.sidebar.is-open{transform:translateX(0)}.sidebar-shade{position:fixed;inset:0;z-index:45;background:#15203980;border:0;display:block}.page-wrapper{margin:0}.mobile-only{display:inline-grid}.topbar{justify-content:flex-start;height:65px}.topbar-actions{margin-left:auto}.dashboard-grid{grid-template-columns:1.5fr 1fr}}@media(max-width:760px){#main{padding:24px 17px 16px}.topbar{padding:0 15px;gap:9px}.header-name,.header-divider,.website-link{display:none}.breadcrumbs{font-size:11px;gap:8px}.page-heading{align-items:flex-start;margin-bottom:22px}.page-heading h1{font-size:25px}.date-chip{display:none}.welcome-strip{padding:24px}.welcome-strip h2{font-size:21px}.welcome-art{display:none}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.stat-card{min-height:125px;padding:17px}.dashboard-grid,.split-grid{grid-template-columns:1fr;gap:16px;margin-top:16px}.panel{padding:20px}.table-panel{padding:0}.resource-toolbar{padding:15px}.search-wrap{max-width:none;flex-basis:100%}.resource-toolbar .button{flex:1}.resource-toolbar select{max-width:none;flex:1}.data-table td,.data-table th{padding:13px 16px}.table-footer{flex-direction:column;align-items:flex-start;padding:16px}.table-footer>div{width:100%;justify-content:space-between}.form-grid{grid-template-columns:1fr}#editor-form{padding:20px}.form-grid>.wide{grid-column:auto}.bar-chart{gap:5px}.bar-column>span{font-size:8px;transform:rotate(-30deg);margin-top:3px}.toast-region{bottom:15px;right:15px}.login-grid{grid-template-columns:1fr}.login-brand{display:none}.login-form{padding:32px 25px;min-height:100vh}.login-form>div{padding:50px 0;max-width:430px;margin:auto;width:100%}.item-row{grid-template-columns:1fr 55px 78px 25px;gap:4px}.tab-bar{gap:0}.tab-bar a{padding:10px;font-size:11px}.health-row{align-items:flex-start}.workspace-footer{font-size:9px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
