:root {
  --one-navy: #10243e;
  --one-blue: #1769aa;
  --one-cyan: #159bb7;
  --one-green: #16885c;
  --one-orange: #e48a16;
  --one-red: #c83e4d;
  --one-purple: #6f55a3;
  --one-bg: #f3f6f9;
  --one-line: #dce4eb;
  --one-text: #172330;
  --one-muted: #66788a;
  --one-white: #fff;
  --one-shadow: 0 8px 28px rgba(16, 36, 62, .08);
}

.one-crm-app,
.one-crm-app * { box-sizing: border-box; }
.one-crm-app { width: 100%; min-height: 100vh; background: var(--one-bg); color: var(--one-text); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.45; }
.wp-admin .one-crm-app { margin: -10px 0 0 -20px; width: calc(100% + 20px); }
.one-crm-header { min-height: 78px; background: var(--one-white); border-bottom: 1px solid var(--one-line); display: flex; justify-content: space-between; align-items: center; padding: 12px 28px; position: sticky; top: 0; z-index: 20; }
.wp-admin .one-crm-header { top: 32px; }
.one-crm-header > div:first-child { display: flex; align-items: center; gap: 13px; }
.one-crm-mark { width: 48px; height: 48px; display: inline-grid; place-items: center; color: white; font-size: 16px; font-weight: 900; letter-spacing: -.5px; border-radius: 13px; background: linear-gradient(145deg, var(--one-blue), var(--one-cyan)); box-shadow: 0 7px 18px rgba(23,105,170,.25); flex: none; }
.one-crm-header h1 { font-size: 19px; line-height: 1.1; margin: 0; color: var(--one-navy); font-weight: 800; }
.one-crm-header p { margin: 4px 0 0; font-size: 12px; color: var(--one-muted); }
.one-crm-user { display: grid; grid-template-columns: auto auto; gap: 0 12px; text-align: right; font-size: 13px; }
.one-crm-user strong { color: var(--one-navy); }
.one-crm-user span { grid-column: 1; color: var(--one-muted); font-size: 11px; }
.one-crm-user a { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--one-blue); text-decoration: none; }
.one-crm-nav { background: var(--one-navy); display: flex; gap: 3px; padding: 0 22px; overflow-x: auto; scrollbar-width: thin; position: sticky; top: 78px; z-index: 19; }
.wp-admin .one-crm-nav { top: 110px; }
.one-crm-nav a { color: #dce7f2; text-decoration: none; padding: 13px 11px 11px; border-bottom: 3px solid transparent; white-space: nowrap; font-size: 12px; display: flex; gap: 6px; align-items: center; }
.one-crm-nav a:hover, .one-crm-nav a.active { color: white; background: rgba(255,255,255,.07); border-bottom-color: #38c1dc; }
.one-crm-nav a span { opacity: .85; }
.one-crm-main { max-width: 1580px; margin: 0 auto; padding: 26px; }
.one-crm-page-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.one-crm-page-title > div:last-child { display: flex; gap: 8px; align-items: center; }
.one-crm-page-title h2 { margin: 3px 0 2px; font-size: clamp(22px, 2vw, 29px); color: var(--one-navy); letter-spacing: -.5px; }
.one-crm-page-title p { margin: 0; color: var(--one-muted); font-size: 13px; }
.one-back { font-size: 12px; color: var(--one-blue); text-decoration: none; }
.one-card { background: var(--one-white); border: 1px solid var(--one-line); border-radius: 14px; padding: 20px; box-shadow: var(--one-shadow); margin-bottom: 20px; overflow: hidden; }
.one-card > h3 { margin: 0 0 15px; color: var(--one-navy); font-size: 16px; }
.one-card-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 16px; }
.one-card-head h3 { margin: 0; color: var(--one-navy); font-size: 16px; }
.one-card-head a, .one-card-head span { color: var(--one-blue); font-size: 12px; text-decoration: none; }
.one-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.one-grid-2 > .one-card { min-width: 0; }
.one-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(160px,1fr)); gap: 15px; margin-bottom: 20px; }
.one-kpi { min-height: 118px; background: white; border: 1px solid var(--one-line); border-left: 5px solid var(--one-blue); border-radius: 13px; padding: 16px 17px; box-shadow: var(--one-shadow); display: flex; flex-direction: column; }
.one-kpi span { color: var(--one-muted); font-size: 12px; font-weight: 600; }
.one-kpi strong { color: var(--one-navy); font-size: clamp(20px, 2vw, 29px); margin: 8px 0 3px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.one-kpi small { color: var(--one-muted); font-size: 11px; margin-top: auto; }
.one-kpi.green { border-left-color: var(--one-green); }
.one-kpi.orange { border-left-color: var(--one-orange); }
.one-kpi.red { border-left-color: var(--one-red); }
.one-kpi.purple { border-left-color: var(--one-purple); }
.one-kpi-small { grid-template-columns: repeat(4,minmax(150px,1fr)); }
.one-kpi-small .one-kpi { min-height: 100px; }
.one-kpi-small .one-kpi strong { font-size: 22px; }
.one-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 37px; padding: 8px 13px; border-radius: 8px; border: 1px solid #cbd7e1; color: var(--one-navy); background: white; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2; }
.one-btn:hover { border-color: var(--one-blue); color: var(--one-blue); background: #f7fbff; }
.one-btn-primary { background: var(--one-blue); border-color: var(--one-blue); color: white; }
.one-btn-primary:hover { background: #10598f; color: white; }
.one-btn-whatsapp { background: #16885c; border-color: #16885c; color: white; }
.one-btn-whatsapp:hover { background: #0f714b; color: white; }
.one-btn-small { min-height: 29px; padding: 5px 8px; font-size: 10px; }
.one-inline-form { display: inline-flex; margin: 0; }
.one-notice, .one-crm-notice { padding: 12px 15px; border-radius: 9px; margin-bottom: 18px; font-size: 13px; border: 1px solid; }
.one-crm-notice.is-success { background: #ebfaf3; border-color: #a8dfc8; color: #126543; }
.one-crm-notice.is-error { background: #fff0f1; border-color: #ecc0c5; color: #9d2633; }
.one-toolbar, .one-filter-bar { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.one-toolbar form:first-child { display: flex; gap: 7px; width: min(100%, 520px); }
.one-toolbar input[type="search"] { width: 100%; }
.one-filter-bar { background: white; border: 1px solid var(--one-line); padding: 14px; border-radius: 12px; margin-bottom: 20px; box-shadow: var(--one-shadow); justify-content: flex-start; flex-wrap: wrap; }
.one-filter-bar label { width: 180px; }
.one-table-wrap { max-width: 100%; overflow: auto; }
.one-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 12px; }
.one-table th { text-align: left; background: #f5f8fb; padding: 10px; color: #54677a; border-bottom: 1px solid var(--one-line); text-transform: uppercase; letter-spacing: .03em; font-size: 10px; }
.one-table td { padding: 11px 10px; border-bottom: 1px solid #edf1f4; vertical-align: middle; }
.one-table tbody tr:hover { background: #f9fbfd; }
.one-table td strong { color: var(--one-navy); }
.one-table td small { display: block; color: var(--one-muted); margin-top: 3px; }
.one-table a { color: var(--one-blue); text-decoration: none; }
.one-row-actions { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.one-empty { text-align: center; color: var(--one-muted); padding: 20px; font-size: 12px; }
.one-status, .one-stage { display: inline-flex; align-items: center; border-radius: 30px; padding: 3px 8px; font-size: 10px; font-weight: 800; background: #e9f1f8; color: #315a7c; white-space: nowrap; }
.one-status-sent, .one-stage-contacted { background: #eaf4fc; color: #1769aa; }
.one-status-accepted, .one-status-paid, .one-status-completed, .one-stage-won { background: #e3f6ed; color: #12734b; }
.one-status-rejected, .one-status-cancelled, .one-stage-lost { background: #fde8ea; color: #a62b39; }
.one-status-expired, .one-status-pending, .one-stage-new { background: #fff2dc; color: #9a5d0b; }
.one-stage-qualified { background: #e9f6f8; color: #14778b; }
.one-stage-quote { background: #f1edfb; color: #63449a; }
.one-stage-negotiation { background: #fff0e2; color: #a4520b; }
.one-form-card { padding: 20px; }
.one-form { color: var(--one-text); }
.one-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.one-form label, .one-filter-bar label { display: flex; flex-direction: column; gap: 5px; color: #44596b; font-size: 11px; font-weight: 700; }
.one-form input, .one-form select, .one-form textarea, .one-toolbar input, .one-filter-bar input, .one-filter-bar select, .one-quick-actions input, .one-copy-field input { width: 100%; min-height: 39px; border: 1px solid #cad6df; border-radius: 7px; background: white; padding: 8px 10px; color: var(--one-text); font: inherit; font-size: 13px; box-shadow: none; }
.one-form textarea { resize: vertical; }
.one-form input:focus, .one-form select:focus, .one-form textarea:focus, .one-toolbar input:focus { border-color: var(--one-blue); outline: 3px solid rgba(23,105,170,.1); }
.one-form label small { color: var(--one-muted); font-weight: 400; }
.one-span-2 { grid-column: 1 / -1; }
.one-form-actions { display: flex; gap: 8px; margin-top: 4px; }
.one-check { flex-direction: row !important; align-items: center; font-size: 12px !important; }
.one-check input { width: auto; min-height: 0; }
.one-multiselect { min-height: 120px !important; }
.one-details { display: grid; grid-template-columns: 125px 1fr; margin: 0; font-size: 12px; }
.one-details dt, .one-details dd { padding: 8px 0; border-bottom: 1px solid #edf1f4; margin: 0; }
.one-details dt { color: var(--one-muted); font-weight: 700; }
.one-details dd { color: var(--one-text); word-break: break-word; }
.one-task-list { padding: 0; margin: 0; list-style: none; }
.one-task-list li { display: flex; gap: 11px; align-items: center; padding: 10px 0; border-bottom: 1px solid #edf1f4; }
.one-task-list li:last-child { border: 0; }
.one-task-list strong, .one-task-list small { display: block; }
.one-task-list strong { color: var(--one-navy); font-size: 12px; }
.one-task-list small { color: var(--one-muted); font-size: 10px; margin-top: 3px; }
.one-dot { width: 9px; height: 9px; background: var(--one-blue); border-radius: 50%; flex: none; }
.one-dot.overdue { background: var(--one-red); box-shadow: 0 0 0 4px rgba(200,62,77,.12); }
.one-quick-actions > div:not(.one-card-head) { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }
.one-quick-actions > div a { padding: 16px; background: #f5f9fc; border: 1px solid var(--one-line); border-radius: 9px; color: var(--one-blue); font-weight: 800; text-align: center; text-decoration: none; font-size: 12px; }
.one-quick-actions p { position: relative; margin: 17px 0 0; }
.one-quick-actions p strong { display: block; font-size: 11px; margin-bottom: 5px; }
.one-quick-actions p input { padding-right: 72px; }
.one-quick-actions p button { position: absolute; right: 4px; bottom: 4px; height: 31px; border: 0; background: var(--one-navy); color: white; border-radius: 5px; font-size: 10px; cursor: pointer; }
.one-bar-chart { height: 250px; display: flex; align-items: end; gap: 5px; padding-top: 20px; overflow-x: auto; }
.one-bar-col { min-width: 31px; height: 100%; flex: 1; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 4px; }
.one-bar-col i { width: 75%; min-height: 3px; max-width: 35px; background: linear-gradient(180deg,var(--one-cyan),var(--one-blue)); border-radius: 5px 5px 2px 2px; }
.one-bar-col span { font-size: 9px; color: var(--one-muted); }
.one-bar-col small { font-size: 9px; color: var(--one-muted); white-space: nowrap; transform: rotate(-35deg); margin: 10px 0 6px; }
.one-pipeline-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.one-pipeline-summary > div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 8px; padding: 9px; border: 1px solid #e7edf2; border-radius: 8px; }
.one-pipeline-summary > div small { grid-column: 1 / -1; color: var(--one-muted); }
.one-kanban { display: grid; grid-template-columns: repeat(7,minmax(190px,1fr)); gap: 10px; overflow-x: auto; padding-bottom: 12px; }
.one-kanban-column { min-height: 360px; background: #eaf0f5; border-radius: 12px; padding: 10px; }
.one-kanban-column > header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.one-kanban-column > header strong { font-size: 11px; color: var(--one-muted); }
.one-opportunity { background: white; border: 1px solid #dae3ea; border-radius: 9px; padding: 10px; margin-bottom: 8px; box-shadow: 0 3px 9px rgba(16,36,62,.05); }
.one-opportunity a { color: var(--one-navy); text-decoration: none; }
.one-opportunity span, .one-opportunity b, .one-opportunity small { display: block; }
.one-opportunity span { color: var(--one-muted); font-size: 10px; margin: 4px 0 10px; }
.one-opportunity b { color: var(--one-green); font-size: 13px; }
.one-opportunity small { color: var(--one-muted); margin-top: 3px; font-size: 9px; }
.one-quote-items { margin: 18px 0; }
.one-quote-row { display: grid; grid-template-columns: 1.6fr 1.7fr .5fr .8fr .8fr 30px; gap: 7px; margin-bottom: 7px; align-items: start; }
.one-quote-row input, .one-quote-row select { width: 100%; min-height: 38px; border: 1px solid #cad6df; border-radius: 6px; padding: 6px; font-size: 11px; }
.one-quote-head { font-size: 9px; color: var(--one-muted); text-transform: uppercase; font-weight: 800; margin-bottom: 4px; }
.one-remove-row { border: 0; border-radius: 6px; min-height: 38px; background: #fbe8ea; color: var(--one-red); font-size: 18px; cursor: pointer; }
.one-quote-live-totals { margin: 18px 0; display: flex; justify-content: flex-end; gap: 25px; padding: 15px; background: #f5f8fb; border-radius: 9px; }
.one-quote-live-totals span { color: var(--one-muted); font-size: 11px; }
.one-quote-live-totals strong { display: block; color: var(--one-navy); font-size: 18px; }
.one-quote-document { background: white; border: 1px solid var(--one-line); border-radius: 8px; padding: 38px; max-width: 1000px; margin: 0 auto 20px; box-shadow: var(--one-shadow); }
.one-quote-document > header { display: flex; justify-content: space-between; border-bottom: 3px solid var(--one-navy); padding-bottom: 20px; }
.one-quote-document > header > div:first-child { display: grid; grid-template-columns: 55px 1fr; align-items: center; gap: 0 12px; }
.one-quote-document > header h2 { margin: 0; font-size: 19px; color: var(--one-navy); }
.one-quote-document > header p { grid-column: 2; margin: 2px 0; color: var(--one-muted); font-size: 10px; }
.one-quote-document > header > div:last-child { text-align: right; display: flex; flex-direction: column; }
.one-quote-document > header > div:last-child strong { color: var(--one-blue); letter-spacing: .12em; }
.one-quote-document > header > div:last-child b { font-size: 19px; color: var(--one-navy); }
.one-quote-document > header > div:last-child span { color: var(--one-muted); font-size: 11px; }
.one-quote-party { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; padding: 22px 0; }
.one-quote-party > div { display: flex; flex-direction: column; font-size: 11px; }
.one-quote-party small { color: var(--one-blue); font-weight: 800; letter-spacing: .08em; }
.one-quote-party strong { font-size: 14px; color: var(--one-navy); margin: 3px 0; }
.one-quote-party span { color: var(--one-muted); }
.one-quote-document table { width: 100%; border-collapse: collapse; font-size: 10px; }
.one-quote-document th { text-align: left; padding: 9px; background: var(--one-navy); color: white; }
.one-quote-document td { padding: 9px; border-bottom: 1px solid var(--one-line); }
.one-quote-bottom { display: grid; grid-template-columns: 1fr 320px; gap: 35px; padding-top: 22px; }
.one-quote-bottom h4 { margin: 0 0 3px; color: var(--one-navy); }
.one-quote-bottom p { color: var(--one-muted); font-size: 10px; margin: 0 0 15px; }
.one-quote-bottom dl { display: grid; grid-template-columns: 1fr auto; font-size: 11px; margin: 0; }
.one-quote-bottom dt, .one-quote-bottom dd { margin: 0; padding: 6px; border-bottom: 1px solid var(--one-line); }
.one-quote-bottom dd { text-align: right; }
.one-quote-bottom .total { background: var(--one-navy); color: white; font-size: 14px; font-weight: 900; }
.one-quote-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.one-activity-list article { display: grid; grid-template-columns: 38px 1fr auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #edf1f4; }
.one-activity-list article.is-overdue { background: #fff7f7; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.one-activity-icon { width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center; background: #e7f1f9; color: var(--one-blue); font-weight: 900; }
.one-activity-list p { margin: 2px 0; font-size: 11px; }
.one-activity-list small { color: var(--one-muted); font-size: 10px; }
.one-product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.one-product-grid article { display: grid; grid-template-columns: 90px 1fr; border: 1px solid var(--one-line); border-radius: 10px; padding: 10px; gap: 10px; min-width: 0; }
.one-product-grid img { width: 90px; height: 90px; object-fit: contain; border-radius: 7px; background: #f5f7f9; }
.one-product-grid h3 { font-size: 12px; margin: 3px 0 5px; color: var(--one-navy); }
.one-product-grid small, .one-product-grid span, .one-product-grid a { display: block; font-size: 9px; color: var(--one-muted); }
.one-product-grid strong { display: block; color: var(--one-green); font-size: 11px; margin-bottom: 4px; }
.one-product-grid a { color: var(--one-blue); margin-top: 5px; }
.one-project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.one-project-grid .one-card h3 { margin: 0 0 4px; }
.one-project-grid .one-card p { font-size: 11px; color: var(--one-muted); }
.one-project-grid .one-card > small { display: block; color: var(--one-muted); margin-top: 5px; }
.one-progress { height: 8px; border-radius: 20px; background: #e6edf2; overflow: hidden; margin: 15px 0 5px; }
.one-progress i { display: block; height: 100%; background: linear-gradient(90deg,var(--one-blue),var(--one-green)); }
.one-status-report > div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--one-line); }
.one-export-grid { display: flex; gap: 7px; flex-wrap: wrap; }
.one-copy-field { display: flex; min-width: 260px; }
.one-copy-field input { border-radius: 7px 0 0 7px; font-size: 9px; }
.one-copy-field button { border: 0; border-radius: 0 7px 7px 0; background: var(--one-navy); color: white; padding: 7px; cursor: pointer; }
.one-timeline { list-style: none; margin: 0; padding: 0; }
.one-timeline li { display: grid; grid-template-columns: 15px 1fr; gap: 8px; padding-bottom: 12px; }
.one-timeline li > span { width: 9px; height: 9px; background: var(--one-blue); border-radius: 50%; margin-top: 4px; box-shadow: 0 0 0 4px #e8f2fa; }
.one-timeline strong, .one-timeline small { display: block; }
.one-timeline strong { font-size: 11px; color: var(--one-navy); }
.one-timeline small { font-size: 9px; color: var(--one-muted); }
.one-timeline p { margin: 3px 0 0; font-size: 10px; }
.one-crm-login, .one-crm-denied { max-width: 440px; margin: 50px auto; background: white; border: 1px solid var(--one-line); box-shadow: var(--one-shadow); border-radius: 13px; padding: 28px; }
.one-crm-login h2 { color: var(--one-navy); font-size: 21px; }
.one-crm-login label { display: block; font-size: 12px; }
.one-crm-login input[type="text"], .one-crm-login input[type="password"] { width: 100%; padding: 9px; border: 1px solid var(--one-line); border-radius: 6px; }
.one-crm-login input[type="submit"] { background: var(--one-blue); color: white; border: 0; border-radius: 7px; padding: 10px 18px; cursor: pointer; }
.one-crm-whatsapp-product { display: inline-flex; padding: 12px 18px; margin-top: 9px; border-radius: 7px; background: #16885c; color: white !important; text-decoration: none; font-weight: 800; }
.one-crm-lead-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.one-crm-lead-form h3, .one-crm-lead-form > p:last-of-type, .one-crm-lead-form button, .one-crm-success, .one-crm-error { grid-column: 1/-1; }
.one-crm-success { color: #126543; background: #ebfaf3; border: 1px solid #a8dfc8; border-radius: 7px; padding: 9px; }
.one-crm-error { color: #9d2633; background: #fff0f1; border: 1px solid #ecc0c5; border-radius: 7px; padding: 9px; }
.one-crm-lead-form p { margin: 0; }
.one-crm-lead-form label { font-size: 12px; }
.one-crm-lead-form input, .one-crm-lead-form textarea { width: 100%; border: 1px solid #cbd7e1; border-radius: 7px; padding: 9px; }
.one-crm-lead-form button { background: var(--one-blue); color: white; border: 0; border-radius: 7px; padding: 11px; font-weight: 800; }
.one-crm-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }

@media (max-width: 1180px) {
  .one-kpi-grid { grid-template-columns: repeat(2,minmax(150px,1fr)); }
  .one-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .one-project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 782px) {
  .wp-admin .one-crm-app { margin-left: -10px; width: calc(100% + 10px); }
  .wp-admin .one-crm-header { top: 46px; }
  .wp-admin .one-crm-nav { top: 124px; }
  .one-crm-header { padding: 10px 14px; }
  .one-crm-header h1 { font-size: 15px; }
  .one-crm-header p, .one-crm-user span { display: none; }
  .one-crm-mark { width: 42px; height: 42px; }
  .one-crm-user { display: flex; flex-direction: column; gap: 2px; }
  .one-crm-nav { padding: 0 8px; }
  .one-crm-main { padding: 16px 11px; }
  .one-grid-2, .one-form-grid, .one-quote-party, .one-quote-bottom { grid-template-columns: 1fr; }
  .one-product-grid, .one-project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .one-span-2 { grid-column: 1; }
  .one-crm-page-title { align-items: flex-start; }
  .one-quote-row { grid-template-columns: 1fr 1fr; padding: 10px; border: 1px solid var(--one-line); border-radius: 8px; }
  .one-quote-head { display: none; }
  .one-remove-row { grid-column: 2; justify-self: end; width: 38px; }
  .one-quote-document { padding: 20px; }
  .one-quote-document > header { gap: 10px; }
  .one-quote-document > header p { display: none; }
  .one-quote-document table { min-width: 650px; }
  .one-quote-document { overflow-x: auto; }
  .one-activity-list article { grid-template-columns: 35px 1fr; }
  .one-activity-list article > .one-status, .one-activity-list article > form { grid-column: 2; justify-self: start; }
}

@media (max-width: 520px) {
  .one-crm-header { position: relative; top: auto !important; }
  .one-crm-user strong { max-width: 105px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .one-crm-nav { top: 0 !important; }
  .one-crm-nav a { padding: 11px 9px 9px; font-size: 11px; }
  .one-crm-page-title { flex-direction: column; }
  .one-crm-page-title > .one-btn { width: 100%; }
  .one-kpi-grid, .one-kpi-small { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .one-kpi { min-height: 92px; padding: 12px; }
  .one-kpi strong, .one-kpi-small .one-kpi strong { font-size: 17px; }
  .one-card { padding: 14px; border-radius: 10px; }
  .one-toolbar { align-items: stretch; flex-direction: column; }
  .one-toolbar form:first-child { width: 100%; }
  .one-filter-bar label { width: calc(50% - 7px); }
  .one-product-grid { grid-template-columns: 1fr; }
  .one-product-grid article { grid-template-columns: 72px 1fr; }
  .one-product-grid img { width: 72px; height: 72px; }
  .one-project-grid { grid-template-columns: 1fr; }
  .one-quote-live-totals { gap: 12px; justify-content: space-between; }
  .one-quote-live-totals strong { font-size: 14px; }
  .one-details { grid-template-columns: 95px 1fr; }
  .one-crm-lead-form { grid-template-columns: 1fr; }
  .one-crm-lead-form h3, .one-crm-lead-form > p:last-of-type, .one-crm-lead-form button { grid-column: 1; }
}

@media print {
  body.one-crm-print-quote * { visibility: hidden !important; }
  body.one-crm-print-quote .one-quote-document, body.one-crm-print-quote .one-quote-document * { visibility: visible !important; }
  body.one-crm-print-quote .one-quote-document { position: absolute; left: 0; top: 0; width: 100%; max-width: none; box-shadow: none; border: 0; padding: 10mm; }
  body.one-crm-print-quote .one-no-print, body.one-crm-print-quote #wpadminbar, body.one-crm-print-quote #adminmenumain { display: none !important; }
}
