.auth-logo {
    display: block;
    width: min(190px, 70%);
    max-height: 90px;
    object-fit: contain;
    margin: 0 auto 18px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 3px;
}

.alert-success {
    color: #176b34;
    background: #eaf8ee;
    border: 1px solid #a9d8b6;
}

.alert-info {
    color: #0b4f7a;
    background: #edf7ff;
    border: 1px solid #a8d5f2;
}

.ht-module {
    width: min(1440px, 100%);
    margin: 0 auto;
}

.ht-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.ht-page-head h1 {
    margin: 0 0 5px;
    font-size: clamp(25px, 3vw, 34px);
    color: #0b2740;
}

.ht-page-head p {
    margin: 0;
    color: #617080;
}

.ht-card {
    margin-bottom: 20px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(8, 38, 62, .05);
}

.ht-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 17px;
    border: 1px solid var(--blue);
    border-radius: 9px;
    color: #fff;
    background: var(--blue);
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.ht-button:hover { filter: brightness(.95); color: #fff; }
.ht-button-secondary { color: var(--blue); background: #fff; }
.ht-button-secondary:hover { color: #fff; background: var(--blue); }

.ht-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.ht-toolbar input { min-width: min(360px, 100%); }
.ht-toolbar input, .ht-toolbar select, .ht-form-grid input, .ht-form-grid select, .ht-form-grid textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 11px;
    border: 1px solid #c5d0da;
    border-radius: 8px;
    background: #fff;
}

.ht-toolbar input, .ht-toolbar select { width: auto; }

.ht-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 20px;
}

.ht-form-grid label { display: block; color: #263b4d; font-weight: 700; }
.ht-form-grid label > input, .ht-form-grid label > select, .ht-form-grid label > textarea { display: block; margin-top: 7px; font-weight: 400; }
.ht-full { grid-column: 1 / -1; }
.ht-form-grid .ht-check input { display: inline-block; width: auto; min-height: 0; margin: 0 7px 0 0; }

.ht-table-wrap { overflow-x: auto; padding: 0; }
.ht-table { width: 100%; border-collapse: collapse; min-width: 780px; }
.ht-table th, .ht-table td { padding: 14px 16px; border-bottom: 1px solid #e5ebf0; text-align: left; vertical-align: top; }
.ht-table th { color: #526576; background: #f8fafc; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; }
.ht-table tbody tr:last-child td { border-bottom: 0; }
.ht-table tbody tr:hover { background: #fafdff; }
.ht-empty { padding: 35px !important; color: #738293; text-align: center !important; }
.ht-actions, .ht-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ht-inline-form { display: inline-flex; margin: 0; }
.ht-link-action { padding: 0; border: 0; color: var(--blue); background: transparent; font: inherit; text-decoration: underline; cursor: pointer; }
.ht-link-danger { padding: 0; border: 0; color: #b42318; background: transparent; font: inherit; text-decoration: underline; cursor: pointer; }
.ht-button-danger { border-color: #b42318; background: #b42318; }

.ht-status {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.ht-status.is-active { color: #176b34; background: #e7f7ec; }
.ht-status.is-inactive { color: #8e2020; background: #fff0f0; }

.ht-role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ht-role-grid article { padding: 15px; border: 1px solid #e0e7ed; border-radius: 10px; }
.ht-role-grid h3 { margin: 0 0 6px; color: #0b416d; }
.ht-role-grid p { margin: 0; color: #617080; font-size: 13px; line-height: 1.5; }

.ht-logo-settings { display: flex; align-items: center; gap: 20px; padding: 15px; background: #f8fafc; border-radius: 10px; }
.ht-logo-settings img { width: 130px; height: 80px; object-fit: contain; background: #fff; border: 1px solid #dfe7ed; border-radius: 8px; }
.ht-logo-settings small { display: block; margin-top: 6px; color: #718091; }

.ht-order-items { display: grid; gap: 12px; margin-bottom: 12px; min-width: 0; }
.ht-order-row { display: grid; grid-template-columns: minmax(200px,1.1fr) minmax(220px,1.4fr) minmax(90px,.45fr) minmax(125px,.55fr) 42px; gap: 12px; align-items: end; min-width: 0; padding: 15px; border: 1px solid #dbe4ef; border-radius: 12px; background: #fbfdff; overflow: visible; }
.ht-order-row > *, .ht-order-row input, .ht-order-row select, .ht-order-row button { min-width: 0; max-width: 100%; box-sizing: border-box; }
.ht-line-field { display: grid !important; gap: 6px; min-width: 0; color: #334155; font-size: 12px; font-weight: 750; }
.ht-line-field input, .ht-line-field select, .ht-order-file input { width: 100% !important; min-height: 42px; margin: 0 !important; padding: 9px 10px; border: 1px solid #c5d0da; border-radius: 8px; background: #fff; font-size: 14px; font-weight: 400; }
.ht-remove-item { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid #fecaca; border-radius: 8px; color: #962323; background: #fff1f2; font-size: 24px; line-height: 1; cursor: pointer; }
.ht-remove-item:hover { color: #fff; background: #b42318; }
body.admin-app .ht-table img.ht-catalog-thumb { display: block !important; width: 72px !important; min-width: 72px !important; max-width: 72px !important; height: 72px !important; min-height: 72px !important; max-height: 72px !important; object-fit: contain !important; border: 1px solid #dbe4ef; border-radius: 9px; background: #fff; }
.ht-product-image-editor { display: grid; grid-template-columns: 160px 1fr; gap: 18px; align-items: center; padding: 16px; border: 1px solid #dbe4ef; border-radius: 12px; background: #f8fafc; }
.ht-product-image-editor img { width: 160px; height: 130px; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid #dbe4ef; }
.ht-paste-zone { display: block; width: 100%; margin-top: 10px; padding: 18px; border: 2px dashed #93c5fd; border-radius: 10px; background: #eff6ff; color: #0756a5; font-weight: 700; cursor: pointer; }
.ht-paste-zone:focus { outline: 3px solid rgba(37,99,235,.22); }
[data-upload-status] { display: block; margin-top: 8px; color: #475569; }
.ht-image-remove { margin-top: 10px; padding: 8px 12px; border: 0; color: #b42318; background: transparent; text-decoration: underline; cursor: pointer; }
.ht-order-image { display: block; width: 72px !important; height: 72px !important; object-fit: contain !important; border: 1px solid #dbe4ef; border-radius: 8px; background: #fff; }
.ht-order-image[hidden], .ht-product-image-editor img[hidden] { display: none !important; }
.ht-order-preview { display: grid; place-items: center; width: 74px; min-height: 74px; }
.ht-order-upload { grid-column: 1 / -1; display: grid; grid-template-columns: 80px minmax(220px,1fr) minmax(190px,.8fr); gap: 10px; align-items: end; min-width: 0; padding-top: 3px; }
.ht-order-file { display: grid; gap: 6px; min-width: 0; color: #334155; font-size: 12px; font-weight: 750; }
.ht-order-upload .ht-paste-zone { min-height: 42px; margin: 0; padding: 9px 12px; font-size: 12px; }
.ht-order-upload [data-upload-status] { grid-column: 2 / -1; margin: 0; }
.ht-client-control { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: end; min-width: 0; }
.ht-client-picker { position: relative; display: grid !important; gap: 6px; min-width: 0; }
.ht-client-picker > span:first-child { color: #334155; font-size: 12px; font-weight: 750; }
.ht-client-search { width: 100% !important; min-height: 42px; margin: 0 !important; padding: 9px 10px; border: 1px solid #c5d0da; border-radius: 8px; background: #fff; font-size: 14px; font-weight: 400; }
.ht-client-select { display: none !important; }
.ht-client-results { position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; right: 0; max-height: 290px; overflow-y: auto; padding: 5px; border: 1px solid #b8c7d5; border-radius: 8px; background: #fff; box-shadow: 0 14px 30px rgba(15,23,42,.18); }
.ht-client-results[hidden], .ht-client-edit[hidden] { display: none !important; }
.ht-client-result { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 5px; background: #fff; color: #17212b; text-align: left; cursor: pointer; }
.ht-client-result:hover, .ht-client-result:focus { background: #eaf4ff; color: #0756a5; outline: none; }
.ht-client-results small { display: block; padding: 10px; color: #64748b; font-weight: 400; }
.ht-client-edit { min-height: 42px; white-space: nowrap; }
.ht-client-temporary { padding: 16px 0; border-top: 1px solid #dbe4ef; border-bottom: 1px solid #dbe4ef; }
.ht-client-temporary[hidden] { display: none !important; }
.ht-client-temporary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.ht-client-temporary-head strong, .ht-client-temporary-head small { display: block; }
.ht-client-temporary-head small { margin-top: 4px; color: #64748b; font-weight: 400; }
.ht-client-temporary-close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #cbd5e1; border-radius: 8px; color: #475569; background: #fff; font-size: 22px; cursor: pointer; }
.ht-client-temporary-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 16px; }
.ht-catalog-picker { position: relative; display: grid; gap: 6px; }
.ht-catalog-picker input, .ht-catalog-picker select { width: 100%; }
.ht-catalog-select { display: none !important; }
.ht-catalog-results { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; max-height: 290px; overflow-y: auto; padding: 5px; border: 1px solid #b8c7d5; border-radius: 8px; background: #fff; box-shadow: 0 14px 30px rgba(15,23,42,.18); }
.ht-catalog-results[hidden] { display: none; }
.ht-catalog-result { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 5px; background: #fff; color: #17212b; text-align: left; cursor: pointer; }
.ht-catalog-result:hover, .ht-catalog-result:focus { background: #eaf4ff; color: #0756a5; outline: none; }
.ht-catalog-results small { display: block; padding: 10px; color: #64748b; font-weight: 400; }
.ht-line-notes { grid-column: 1 / -1; }
.ht-stock-panel { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(240px,.7fr) minmax(260px,1.3fr); gap: 12px; align-items: end; padding: 12px 0; border-top: 1px solid #e2e8f0; }
.ht-stock-panel[hidden] { display: none !important; }
.ht-stock-status { min-height: 42px; display: flex; align-items: center; padding: 9px 11px; border: 1px solid #d6dee6; border-radius: 8px; color: #475569; background: #f8fafc; font-size: 12px; font-weight: 650; line-height: 1.4; }
.ht-stock-status.is-loading, .ht-stock-status.is-pending { color: #76550a; border-color: #ead18b; background: #fff9e8; }
.ht-stock-status.is-available { color: #176b34; border-color: #9fd2ad; background: #eaf8ee; }
.ht-stock-status.is-insufficient { color: #9f2525; border-color: #efb2b2; background: #fff0f0; }

.ht-feature-list { display: grid; gap: 10px; }
.ht-feature-row { display: grid; grid-template-columns: 110px minmax(240px, .8fr) minmax(260px, 1fr); gap: 18px; align-items: center; padding: 14px; border: 1px solid #dbe4ef; border-radius: 10px; background: #fbfdff; }
.ht-feature-row p { margin: 0; color: #64748b; font-size: 13px; }
.ht-feature-toggle { display: flex; align-items: center; gap: 8px; font-weight: 750; }
.ht-feature-toggle input { width: 20px; height: 20px; }
.ht-feature-name { display: grid; gap: 5px; color: #475569; font-size: 12px; font-weight: 750; }
.ht-feature-name input { width: 100%; min-height: 42px; padding: 9px 10px; border: 1px solid #c5d0da; border-radius: 8px; background: #fff; font-size: 14px; }
.ht-form-actions { margin-top: 18px; }
.ht-reset-form { margin: -8px 0 20px; }

.ht-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ht-summary-grid article { display: grid; gap: 7px; }
.ht-summary-grid span, .ht-summary-grid small { color: #667788; }
.ht-summary-grid strong { color: #0b2740; font-size: 20px; }

.sidebar nav { flex:1; min-height:0; }
.sidebar-user .sidebar-home { margin: 0 0 14px; padding: 10px 12px; border: 1px solid rgba(139,200,255,.35); border-radius: 8px; color: #fff; background: rgba(8,119,220,.2); text-decoration: none; font-weight: 750; }
.sidebar-user .sidebar-home:hover { background: #0877dc; }

.ht-home { width: min(1260px, 100%); margin: 0 auto; padding: clamp(10px,2vw,28px) 0 40px; }
.ht-home-hero { position: relative; margin-bottom: 28px; padding: 35px clamp(20px,5vw,60px); overflow: hidden; border: 1px solid #d6e4ef; border-radius: 24px; color: #fff; text-align: center; background: radial-gradient(circle at 88% 10%,rgba(112,185,40,.32),transparent 28%),linear-gradient(135deg,#061d31,#0b416d); box-shadow: 0 18px 46px rgba(7,31,52,.14); }
.ht-home-hero:after { content:""; position:absolute; width:180px; height:180px; right:-55px; bottom:-105px; border:28px solid rgba(255,255,255,.08); border-radius:50%; }
.ht-home-hero h1 { position:relative; z-index:1; margin:10px 0 7px; font-size:clamp(30px,4vw,50px); line-height:1.08; }
.ht-home-hero p { position:relative; z-index:1; margin:0; color:#d5e7f5; font-size:clamp(14px,2vw,18px); }
.ht-plan-pill { position:relative; z-index:1; display:inline-flex; padding:7px 12px; border:1px solid rgba(255,255,255,.28); border-radius:999px; color:#fff; background:rgba(255,255,255,.1); font-size:12px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.ht-home-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.ht-home-card { --accent:#0877dc; position:relative; min-height:190px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:13px; padding:25px 18px 22px; overflow:hidden; border:1px solid #dce6ee; border-top:5px solid var(--accent); border-radius:18px; color:#17212b; background:#fff; box-shadow:0 12px 28px rgba(12,43,68,.08); text-align:center; text-decoration:none; transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.ht-home-card:hover { transform:translateY(-4px); border-color:var(--accent); box-shadow:0 18px 34px rgba(12,43,68,.14); }
.ht-home-card.is-purple { --accent:#9b51e0; }.ht-home-card.is-green { --accent:#00a32a; }.ht-home-card.is-gold { --accent:#d99b00; }.ht-home-card.is-dark { --accent:#1d2327; }.ht-home-card.is-vip { --accent:#e12d39; background:linear-gradient(145deg,#fff,#fff4f4); }
.ht-home-icon { width:82px; height:82px; display:grid; place-items:center; border-radius:24px; background:linear-gradient(145deg,#f9fcff,#e9f1f7); box-shadow:inset 0 1px #fff,0 10px 22px rgba(7,31,52,.1); font-size:48px; filter:drop-shadow(0 7px 7px rgba(7,31,52,.13)); }
.ht-home-card-copy { display:grid; gap:5px; }.ht-home-card-copy strong { font-size:17px; line-height:1.2; }.ht-home-card-copy small { color:#667788; line-height:1.35; }
.ht-home-arrow { position:absolute; right:14px; top:50%; transform:translateY(-50%); color:var(--accent); font-size:27px; opacity:0; transition:.18s; }.ht-home-card:hover .ht-home-arrow { opacity:1; right:10px; }
.ht-home-footer { display:flex; justify-content:space-between; gap:15px; margin-top:22px; padding:15px 4px; color:#64748b; font-size:13px; }.ht-home-footer a { font-weight:750; }
.ht-home-empty { text-align:center; }.ht-home-empty h2 { margin-top:0; }
.ht-weekly-sales { margin:0 0 22px; overflow:hidden; border:1px solid #dce6ee; border-radius:14px; background:#fff; box-shadow:0 9px 24px rgba(12,43,68,.07); }
.ht-weekly-leader { display:grid; grid-template-columns:minmax(240px,1fr) minmax(260px,.8fr); gap:22px; align-items:center; padding:20px 24px; border-left:5px solid #0877dc; }
.ht-weekly-kicker { color:#0877dc; font-size:11px; font-weight:800; text-transform:uppercase; }
.ht-weekly-leader h2 { margin:4px 0; color:#102f48; font-size:21px; }
.ht-weekly-leader p { margin:0; color:#64748b; }
.ht-weekly-result { display:grid; gap:3px; padding-left:20px; border-left:1px solid #dce6ee; }
.ht-weekly-result strong { color:#0b416d; font-size:22px; }
.ht-weekly-result span { color:#243b53; font-weight:750; }
.ht-weekly-result small { color:#64748b; }
.ht-weekly-history { padding:15px 24px 20px; border-top:1px solid #e5ebf0; background:#f8fafc; }
.ht-weekly-history h3 { margin:0 0 10px; color:#41576a; font-size:13px; }
.ht-weekly-history-list { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.ht-weekly-history-list article { display:grid; gap:3px; min-width:0; padding:10px 12px; border:1px solid #dde6ed; border-radius:8px; background:#fff; }
.ht-weekly-history-list span,.ht-weekly-history-list small { color:#64748b; font-size:11px; }
.ht-weekly-history-list strong { overflow:hidden; color:#183b56; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.ht-plan-form { display:grid; grid-template-columns:minmax(220px,1fr) minmax(230px,.8fr) auto; gap:18px; align-items:end; border-left:5px solid #0877dc; }
.ht-plan-form h2,.ht-plan-form p { margin:0; }.ht-plan-form p { margin-top:5px; color:#64748b; }.ht-plan-form label { display:grid; gap:6px; font-size:12px; font-weight:750; color:#475569; }.ht-plan-form select { min-height:44px; padding:9px 10px; border:1px solid #c5d0da; border-radius:8px; background:#fff; }.ht-plan-descriptions { grid-column:1/-1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px 16px; color:#64748b; line-height:1.45; }

.ht-accounting { width:min(1500px,100%); margin:0 auto; }
.ht-accounting .ht-page-head { margin-bottom:16px; padding:25px; border-radius:18px; color:#fff; background:linear-gradient(135deg,#061d31,#0b4f7e); }
.ht-accounting .ht-page-head h1 { margin:8px 0 4px; color:#fff; }.ht-accounting .ht-page-head p { margin:0; color:#d7eaf8; }
.ht-accounting-tabs { display:flex; gap:7px; margin:0 0 18px; padding:6px; overflow:auto; border:1px solid #dbe4ef; border-radius:12px; background:#fff; }
.ht-accounting-tabs a { flex:0 0 auto; padding:9px 12px; border-radius:8px; color:#40576b; font-size:13px; font-weight:750; text-decoration:none; }
.ht-accounting-tabs a:hover,.ht-accounting-tabs a.active { color:#fff; background:#0877dc; }
.ht-accounting-kpis,.ht-statement-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:16px; }
.ht-accounting-kpis article { display:grid; gap:7px; padding:19px; border:1px solid #dce6ee; border-left:5px solid #0877dc; border-radius:12px; background:#fff; box-shadow:0 8px 20px rgba(8,39,64,.06); }
.ht-accounting-kpis span { color:#64748b; font-size:12px; font-weight:750; text-transform:uppercase; }.ht-accounting-kpis strong { color:#082b47; font-size:28px; }
.ht-accounting-columns { display:grid; grid-template-columns:minmax(340px,.8fr) minmax(520px,1.4fr); gap:16px; align-items:start; }
.ht-accounting .ht-card { min-width:0; }.ht-accounting .ht-card h2 { margin-top:0; color:#0b2a43; }
.ht-accounting-filter { display:flex; flex-wrap:wrap; gap:10px; align-items:end; margin-bottom:14px; }.ht-accounting-filter label { display:grid; gap:4px; color:#536579; font-size:12px; font-weight:750; }
.ht-accounting input,.ht-accounting select { min-height:40px; padding:8px 9px; border:1px solid #c9d5df; border-radius:7px; background:#fff; }
.ht-accounting .ht-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; margin-bottom:14px; }.ht-accounting .ht-form-grid label { display:grid; gap:5px; color:#536579; font-size:12px; font-weight:750; }.ht-accounting .span-2 { grid-column:1/-1; }
.ht-entry-lines { display:grid; gap:7px; margin:12px 0 16px; }.ht-entry-line { display:grid; grid-template-columns:minmax(170px,1fr) minmax(220px,1.2fr) 105px 105px; gap:7px; align-items:start; }.ht-entry-line>span { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }.ht-entry-head { color:#536579; font-size:11px; font-weight:800; text-transform:uppercase; }
.ht-table-wrap { width:100%; overflow:auto; }.ht-accounting table { width:100%; border-collapse:collapse; font-size:13px; }.ht-accounting th,.ht-accounting td { padding:10px 9px; border-bottom:1px solid #e1e8ef; text-align:left; vertical-align:top; white-space:nowrap; }.ht-accounting th { color:#52667a; background:#f6f9fc; font-size:11px; text-transform:uppercase; }.ht-accounting td small { display:block; max-width:300px; color:#708090; white-space:normal; }.ht-accounting tr.total td,.ht-accounting p.total { color:#082b47; font-weight:800; background:#edf6fd; }
.ht-status { display:inline-flex; padding:4px 8px; border-radius:999px; background:#eef2f6; font-size:11px; font-weight:800; }.ht-status.is-posted { color:#176b34; background:#e8f7ec; }.ht-status.is-draft { color:#805c00; background:#fff5d6; }.ht-status.is-reversed { color:#8b2730; background:#fdebed; }
.ht-link-button { padding:0; border:0; color:#0877dc; background:none; cursor:pointer; font-weight:750; }.ht-link-button.danger { color:#c21f1f; }.top-gap { margin-top:16px; }
.ht-statement-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }.ht-statement-grid article p { display:flex; justify-content:space-between; gap:10px; padding:10px 0; border-bottom:1px solid #e3eaf0; }

@media (max-width: 1000px) {
    .ht-accounting-kpis,.ht-statement-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.ht-accounting-columns { grid-template-columns:1fr; }
    .ht-home-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .ht-weekly-history-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .ht-role-grid, .ht-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ht-order-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 42px; }
    .ht-catalog-picker { grid-column: 1 / 2; }
    .ht-line-description { grid-column: 2 / 3; }
    .ht-line-quantity { grid-column: 1 / 2; }
    .ht-line-price { grid-column: 2 / 3; }
    .ht-remove-item { grid-column: 3; grid-row: 1; }
    .ht-order-upload { grid-column: 1 / -1; }
    .ht-feature-row { grid-template-columns: 100px minmax(220px, 1fr); }
    .ht-feature-row p { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
    .ht-accounting-kpis,.ht-statement-grid { grid-template-columns:1fr; }.ht-accounting .ht-page-head { padding:20px 16px; }.ht-entry-line { grid-template-columns:1fr 1fr; padding:10px; border:1px solid #dce6ee; border-radius:9px; }.ht-entry-line>select,.ht-entry-line>span { grid-column:1/-1; }.ht-entry-head { display:none; }.ht-accounting .ht-form-grid { grid-template-columns:1fr; }.ht-accounting .span-2 { grid-column:1; }
    .ht-home { padding-top:0; }.ht-home-hero { padding:25px 16px; border-radius:17px; }.ht-home-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }.ht-home-card { min-height:155px; padding:18px 9px 15px; border-radius:14px; }.ht-home-icon { width:62px; height:62px; border-radius:18px; font-size:37px; }.ht-home-card-copy strong { font-size:14px; }.ht-home-card-copy small,.ht-home-arrow { display:none; }.ht-home-footer { align-items:flex-start; flex-direction:column; }.ht-plan-form,.ht-plan-descriptions { grid-template-columns:1fr; }.ht-plan-descriptions { grid-column:1; }
    .ht-weekly-leader { grid-template-columns:1fr; padding:17px; }.ht-weekly-result { padding:13px 0 0; border-left:0; border-top:1px solid #dce6ee; }.ht-weekly-history { padding:13px 17px 17px; }.ht-weekly-history-list { grid-template-columns:1fr; }
    .ht-page-head { align-items: stretch; flex-direction: column; }
    .ht-form-grid, .ht-role-grid, .ht-summary-grid { grid-template-columns: 1fr; }
    .ht-full { grid-column: auto; }
    .ht-order-row { grid-template-columns: minmax(0,1fr) 42px; }
    .ht-catalog-picker, .ht-line-description, .ht-line-quantity, .ht-line-price { grid-column: 1 / -1; }
    .ht-catalog-picker { grid-row: 2; }
    .ht-remove-item { grid-column: 2; grid-row: 1; }
    .ht-logo-settings { align-items: flex-start; flex-direction: column; }
    .ht-product-image-editor, .ht-order-upload { grid-template-columns: 1fr; }
    .ht-order-upload [data-upload-status] { grid-column: 1; }
    .ht-client-control { grid-template-columns: 1fr; }
    .ht-client-edit { justify-self: start; }
    .ht-client-temporary-grid, .ht-stock-panel { grid-template-columns: 1fr; }
    .ht-feature-row { grid-template-columns: 1fr; }
    .ht-feature-row p { grid-column: 1; }
}

/* GT3 Solar brand */
:root{--navy:#3E3E3E;--blue:#51B71A;--green:#DAE122;--bg:#f7f8f0;--text:#3E3E3E;--line:#d9dfc8}
.auth-page{background:radial-gradient(circle at top right,#edf3cf 0,transparent 38%),linear-gradient(140deg,#fbfcf7,#eef2e4)}
.sidebar{background:linear-gradient(180deg,#3E3E3E,#292929)}
.sidebar nav a:hover,.sidebar nav a.active{background:#51B71A}
.sidebar-user .sidebar-home{border-color:rgba(218,225,34,.55);background:rgba(218,225,34,.16)}
.sidebar-user .sidebar-home:hover{background:#51B71A}
.ht-button{border-color:#51B71A;background:#51B71A}.ht-button-secondary{color:#3E3E3E;background:#fff}.ht-button-secondary:hover{background:#51B71A}
.ht-home-hero,.ht-accounting .ht-page-head{background:radial-gradient(circle at 88% 10%,rgba(218,225,34,.30),transparent 28%),linear-gradient(135deg,#3E3E3E,#4d4d4d)}
.ht-home-card{--accent:#51B71A}.ht-home-card.is-gold{--accent:#DAE122}.ht-home-card.is-green{--accent:#51B71A}.ht-home-card.is-dark{--accent:#3E3E3E}
.ht-page-head h1,.ht-summary-grid strong{color:#3E3E3E}


/* GT3 Solar - logotipo principal sobre verde corporativo. */
.brand { background: #51B71A !important; border-radius: 12px !important; padding: 10px 12px !important; }
.brand .brand-logo { filter: brightness(0) invert(1) !important; }
.brand strong { color: #FFFFFF !important; }


/* GT3 Solar: logotipo principal a color. */
.brand { background: #51B71A !important; border-radius: 12px !important; padding: 10px 12px !important; }
.brand .brand-logo { filter: brightness(0) invert(1) !important; }
.brand strong { color: #FFFFFF !important; }
