/* Shared workspace geometry. Components, not HTML tag names, own their style. */
.workspace .app-workarea > main{padding:32px 40px;max-width:1440px;margin-inline:auto}
.workspace .app-workarea > main[data-page="settings"]{max-width:1440px}
.workspace .bon-editor,.workspace .settings-grid{max-width:none;width:100%}
.workspace .page-heading{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:16px;min-height:64px;margin:0 0 20px;padding:0;background:transparent;color:var(--ink);border:0;flex-shrink:0}
.workspace .page-heading > h1,.workspace .page-heading > div:first-child:not(.actions){flex:1;min-width:0}
.workspace .page-heading h1{font-size:24px;font-weight:500;line-height:32px;letter-spacing:-.5px;margin:0}
.workspace .page-heading .page-subtitle,.workspace .page-heading > div > p,.workspace .page-heading > div > small,.workspace .page-heading .muted{display:block;font-size:12px;line-height:18px;color:var(--muted);margin:4px 0 0}
.workspace .page-heading .actions{margin:0;justify-content:flex-end;align-items:center;gap:8px}
.workspace .page-heading > .button{flex-shrink:0}
.workspace .page-actions form{display:flex;gap:8px;align-items:center;margin:0}
.workspace #main-content button,.workspace #main-content .button{font-size:13px;line-height:18px;font-weight:400;min-height:36px;padding:8px 12px;border-radius:6px;vertical-align:middle}
.workspace #main-content button.primary,.workspace #main-content .button.primary{background:#142b20;border-color:#142b20;color:#fff}
.workspace #main-content button.primary:hover,.workspace #main-content .button.primary:hover{background:#263b30}
.workspace #main-content button:disabled{cursor:default}
.workspace .page-actionbar,.workspace .page-heading + .actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 20px}
.workspace .page-actionbar form,.workspace .page-heading + .actions form{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0}
.workspace .order-detail-statuses{gap:10px;margin:0 0 20px}
.workspace .order-detail-statuses .order-status{min-width:160px}
.workspace #administration dt{color:var(--muted);font-size:12px}
.workspace #administration dd{margin:0 0 14px}
.workspace .page-history{min-height:32px;margin:-8px 0 12px}
.workspace .page-history .undo{display:flex;align-items:center;min-height:28px;margin:0;padding:0!important;gap:12px}
.workspace .page-history .undo form{margin:0}
.workspace #main-content .undo button{min-height:28px;padding:4px;font-size:12px;border:0}
.workspace .page-history #inline-feedback:empty{display:none}
.workspace .page-controls{display:grid;gap:12px;margin:0 0 20px;min-width:0}
.workspace .page-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0;min-height:36px}
.workspace .page-toolbar input:not([type=hidden]),.workspace .page-toolbar select{height:36px;min-width:0;line-height:18px;font-size:13px;margin:0;padding:8px 10px;border-radius:6px}
.workspace .page-toolbar input[name=q]{width:320px;max-width:100%;flex:0 1 320px}
.workspace .page-toolbar select{width:auto;max-width:210px;flex:0 1 200px}
.workspace .page-toolbar button{flex-shrink:0}
.workspace .page-tabs{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-height:40px;margin:0;padding:0 0 8px;border-bottom:1px solid var(--line)}
.workspace #main-content .page-tabs > a,.workspace .page-tab-label{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 12px;border:1px solid var(--line);border-radius:6px;color:var(--ink);background:#fff;font-size:12px;line-height:18px;font-weight:400;text-decoration:none;white-space:nowrap;margin:0}
.workspace #main-content .page-tabs > a:hover{background:#eee7d8}
.workspace #main-content .page-tabs > a[aria-current="page"],.workspace #main-content .page-tabs > a.primary,.workspace #main-content .page-tabs > a[aria-current="page"]:hover,.workspace #main-content .page-tabs > a.primary:hover{background:#142b20;border-color:#142b20;color:#fff}
.workspace .page-tab-label{padding-left:0;color:var(--muted);background:transparent;border-color:transparent}
.workspace .page-tabs + .panel{margin-top:20px}
.workspace .document-section:first-child{margin-top:0}
.workspace .page-controls + .document-section{margin-top:0}
.workspace .page-controls + .panel{margin-top:0}
.workspace .app-workarea > main[data-page="email"]{max-width:none;padding:32px 40px}
.workspace .mail-heading.page-heading{min-height:64px}
.workspace #customer-panel > header{color:var(--ink)}
@media(max-width:1100px){
 .workspace .app-workarea > main,.workspace .app-workarea > main[data-page="email"]{padding:24px}
 .workspace .page-heading .actions{max-width:100%}
}
@media(max-width:650px){
 .workspace .app-workarea > main,.workspace .app-workarea > main[data-page="email"]{padding:20px 14px}
 .workspace .page-heading{min-height:64px;gap:12px;margin-bottom:16px}
 .workspace .page-heading h1{font-size:22px;line-height:30px}
 .workspace .page-heading .actions{justify-content:flex-start}
 .workspace .page-history{margin-top:0;min-height:32px}
 .workspace .page-history .undo{flex-wrap:wrap;justify-content:flex-start}
 .workspace .page-history .undo > span{max-width:100%}
 .workspace .page-toolbar input[name=q]{flex:1 1 100%;width:100%}
 .workspace .page-toolbar select{flex:1 1 150px;max-width:100%}
 .workspace .page-tabs{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:8px}
 .workspace .page-tabs > a{flex-shrink:0}
 .workspace .page-controls{margin-bottom:16px}
}
@media(pointer:coarse){
 .workspace #main-content button,.workspace #main-content .button,.workspace #main-content .page-tabs > a{min-height:44px}
 .workspace .page-toolbar input:not([type=hidden]),.workspace .page-toolbar select{height:44px;font-size:16px}
 .workspace #main-content .undo button{min-height:44px}
}
@media print{.workspace .app-workarea > main{padding:0;max-width:none}.page-actions,.page-controls,.page-history,.page-actionbar{display:none!important}}

.workspace #main-content .page-navigation{display:flex;width:max-content;max-width:100%;align-items:center;justify-content:center;gap:4px;padding:4px;margin:20px auto;background:white;border:1px solid var(--line);border-radius:10px;overflow-x:auto}
.workspace #main-content .page-navigation>a,.workspace #main-content .page-navigation>span:not(.sr-only){display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:34px;margin:0;padding:4px 8px;border-radius:6px;font-size:15px;text-decoration:none;color:var(--ink);flex-shrink:0}
.workspace #main-content .page-navigation>[aria-current=page]{background:#142b20;color:white;font-weight:600}
.workspace #main-content .page-navigation>[aria-disabled=true]{color:#a6aaa8}
.workspace #main-content .page-navigation>a:hover{background:#edf1ef}
@media(pointer:coarse){.workspace #main-content .page-navigation>a,.workspace #main-content .page-navigation>span:not(.sr-only){min-width:40px;min-height:44px}}

/* Shared compact overview rhythm; preserve type sizes and button styling. */
.workspace #main-content .page-heading{min-height:44px;margin-bottom:20px}
.workspace #main-content .page-controls{margin-bottom:16px}
.workspace #main-content .page-controls>.page-tabs:has(.page-tab-label){display:none}
.workspace #main-content .page-history{min-height:0;margin:16px 0 0}
.workspace #main-content .page-history:not(:has(.undo)):has(#inline-feedback:empty),.workspace #main-content .page-history:empty{display:none}
.workspace #main-content .overview-empty{padding:18px;margin-bottom:16px}
.workspace #main-content .list-column-head{display:flex;justify-content:space-between;gap:16px;color:var(--muted);padding-bottom:12px;border-bottom:1px solid var(--line)}
.workspace #main-content .list-column-head+.row{border-top:0}
.workspace #main-content button[hidden],.workspace #main-content .selection-count[hidden]{display:none!important}
