/* SWAG branch dashboard — "Hang-tag store" layout (pure CSS override, no JS) */
body:has(.app-layout){background:#eadfca radial-gradient(rgba(120,90,40,.08) 1px,transparent 1px) 0 0/6px 6px!important}
.app-layout{--bg:#eadfca;--surface:#fffaf0;--surface-2:#f4ead6;--border:#cdb88f;--text:#3a2c1a;--text-muted:#7b6a50;--gold:#3a2c1a;--gold-soft:rgba(58,44,26,.06);--gold-soft-strong:rgba(58,44,26,.12);
  --radius:14px;--radius-sm:8px;--shadow-sm:0 1px 2px rgba(58,44,26,.08);--shadow-md:0 6px 14px rgba(58,44,26,.14);--shadow-lg:0 14px 30px rgba(58,44,26,.2);
  flex-direction:column;background:none;color:var(--text)}

/* sidebar -> rail with hanging tags */
.app-layout>.sidebar{position:relative;width:auto;height:auto;flex:none;flex-direction:row;align-items:flex-start;gap:26px;padding:44px 70px 0;background:none;border:0;box-shadow:none;border-radius:0}
.app-layout>.sidebar:before{content:"";position:absolute;top:26px;inset-inline:40px;height:10px;border-radius:6px;background:linear-gradient(#f4f4f6,#9a9ca5);box-shadow:0 3px 6px rgba(0,0,0,.25)}
.sidebar-logo{display:none!important}
.app-layout .sidebar-nav-label{display:block!important}
.app-layout .sidebar-nav-item{position:relative;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;min-width:120px;width:auto;height:auto;padding:36px 22px 14px;
  border-radius:0;background:#fffaf0;color:#5b4630;font-size:15px;font-weight:600;text-align:center;transform-origin:50% 0;
  clip-path:polygon(14% 0,86% 0,100% 18%,100% 100%,0 100%,0 18%);transition:transform .35s cubic-bezier(.3,1.5,.5,1),background .2s;box-shadow:none}
.app-layout .sidebar-nav-item:before{content:"";position:absolute;top:12px;left:50%;width:12px;height:12px;margin-left:-6px;border-radius:50%;background:#eadfca;box-shadow:inset 0 1px 2px rgba(0,0,0,.4)}
.app-layout .sidebar-nav-item:after{content:"";position:absolute;top:-16px;left:50%;width:2px;height:30px;margin-left:-1px;background:#8b6b3d}
.app-layout .sidebar-nav-item:nth-of-type(2){transform:rotate(2deg)}.app-layout .sidebar-nav-item:nth-of-type(4){transform:rotate(-2deg)}
.app-layout .sidebar-nav-item:hover{background:#fff;color:#3a2c1a;transform:rotate(-4deg)}
.app-layout .sidebar-nav-item.active,.app-layout .sidebar-nav-item.active:hover{background:#c6362c;color:#fff;transform:rotate(-3deg) translateY(6px)}
.app-layout .sidebar-nav-item svg{width:20px;height:20px}
.sidebar-footer{position:absolute;top:44px;inset-inline-end:44px;display:flex;flex-direction:row;gap:8px;margin:0;padding:0;border:0;width:auto}
.sidebar-footer .btn{width:auto!important;margin:0!important;padding:8px 16px;border-radius:999px;border:1.5px solid #3a2c1a;background:transparent;color:#3a2c1a;font-weight:600;font-size:14px;white-space:nowrap}
.sidebar-footer .btn:nth-child(2){display:none}

/* page */
.breadcrumb{display:none!important}
.app-layout>.main-content{flex:1;max-width:none;width:100%;padding:34px 70px 70px}
.main-topbar{justify-content:flex-start;gap:12px;margin-bottom:14px}
.tab-content:has(.search-row){display:grid;grid-template-columns:minmax(0,1fr) 430px;column-gap:34px;align-items:start}
.tab-content:has(.search-row)>div:first-child{display:contents}
.tab-content:has(.search-row)>div:first-child>div:nth-child(1){grid-column:1;font:800 34px/1.15 Georgia,'Times New Roman',serif!important;letter-spacing:-.01em;margin:0 0 4px!important;color:var(--text)}
.tab-content:has(.search-row)>div:first-child>div:nth-child(2){grid-column:1;margin:0 0 22px!important;font-size:15px!important}
.tab-content:has(.search-row)>div:first-child>div:nth-child(3){grid-column:1;display:grid!important;grid-template-columns:repeat(4,1fr);gap:16px!important;margin:0 0 22px}
.tab-content:has(.search-row)>div:nth-child(2){grid-column:1}
.tab-content:has(.search-row)>div:nth-child(3){grid-column:2;grid-row:1 / span 6}

/* stat tags */
.stat-card{background:#fffaf0;border:0;border-radius:0;box-shadow:none;flex-direction:column;align-items:flex-start;gap:0;padding:16px 18px;min-width:0;clip-path:polygon(0 0,calc(100% - 22px) 0,100% 22px,100% 100%,0 100%)}
.stat-card:before,.stat-card-icon{display:none!important}
.stat-card>div{display:flex;flex-direction:column-reverse}
.stat-card-label{font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;opacity:.65;margin:0}
.stat-card-value{font:800 30px Georgia,serif;color:var(--text)!important}

/* search */
.search-row input{height:52px!important;border-radius:8px!important;background:#fffaf0!important;border:2px dashed #8b6b3d!important;padding:0 16px!important;box-shadow:none!important;color:var(--text)}
.search-row .btn{height:52px;border-radius:8px;background:#3a2c1a;color:#fffaf0;border:0;font-weight:700;padding:0 22px}
.empty-state{border:2px dashed #b79a6a;border-radius:10px;background:transparent}

/* cart = kraft shopping bag */
.tab-content:has(.search-row)>div:nth-child(3){position:relative;margin-top:30px;background:linear-gradient(#cfa86e,#bf9556);border-radius:4px 4px 10px 10px;box-shadow:0 12px 20px rgba(0,0,0,.22);padding:44px 20px 22px}
.tab-content:has(.search-row)>div:nth-child(3):before,.tab-content:has(.search-row)>div:nth-child(3):after{content:"";position:absolute;top:-34px;width:70px;height:52px;border:6px solid #7a5a2a;border-bottom:0;border-radius:40px 40px 0 0}
.tab-content:has(.search-row)>div:nth-child(3):before{inset-inline-start:50px}.tab-content:has(.search-row)>div:nth-child(3):after{inset-inline-end:50px}
.section-title{font:800 18px Georgia,serif;text-transform:none;letter-spacing:0;color:#3a2c1a;margin:0 0 12px}
.tab-content:has(.search-row) .cart-panel{background:transparent;border:2px dashed rgba(58,44,26,.5);box-shadow:none;margin:0;border-radius:8px}
.tab-content:has(.search-row) .cart-panel .empty-state{border:0}

/* cart lines inside the bag: name on top, then qty / price / remove */
.tab-content:has(.search-row) .cart-panel{padding:14px 16px;--text-muted:#5a4630}
.tab-content:has(.search-row) .cart-line{grid-template-columns:auto 1fr auto auto!important;gap:8px 10px;padding:12px 0;border-bottom:1px dashed rgba(58,44,26,.35);background:none!important}
.tab-content:has(.search-row) .cart-line>:nth-child(1){grid-column:1/-1;min-width:0;overflow-wrap:anywhere}
.tab-content:has(.search-row) .cart-line>:nth-child(2){grid-column:1}
.tab-content:has(.search-row) .cart-line>:nth-child(3){grid-column:3;text-align:right;font-weight:700;white-space:nowrap}
.tab-content:has(.search-row) .cart-line>:nth-child(4){grid-column:4}
.tab-content:has(.search-row) .cart-line .btn-danger{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;background:#fffaf0;border:1.5px solid #b3261e;color:#b3261e!important;font-weight:700;border-radius:8px}
.tab-content:has(.search-row) .cart-line .btn-danger:hover{background:#b3261e;color:#fff!important}
.tab-content:has(.search-row) .qty-stepper{background:#fffaf0;border-color:#8b6b3d}
.tab-content:has(.search-row) .cart-total-row{flex-direction:column;align-items:stretch;gap:12px}
.tab-content:has(.search-row) .cart-total-row>div{display:flex!important;flex-direction:column;gap:8px!important}
.tab-content:has(.search-row) .cart-total-row .btn{width:100%;border-radius:10px;justify-content:center;white-space:normal;background:#fffaf0;border:1.5px solid #3a2c1a;color:#3a2c1a}
.tab-content:has(.search-row) .cart-total-row .btn-primary{background:#3a2c1a;color:#fffaf0}
.tab-content:has(.search-row) .grand-total{font:800 20px Georgia,serif}
@media (max-width:1180px){
  .tab-content:has(.search-row){grid-template-columns:minmax(0,1fr)}
  .tab-content:has(.search-row)>div:first-child>div:nth-child(1),.tab-content:has(.search-row)>div:first-child>div:nth-child(2),.tab-content:has(.search-row)>div:first-child>div:nth-child(3),.tab-content:has(.search-row)>div:nth-child(2){grid-column:1}
  .tab-content:has(.search-row)>div:nth-child(3){grid-column:1;grid-row:auto;margin-top:46px}
}

@media (max-width:900px){
  .app-layout>.sidebar{padding:36px 14px 0;gap:10px;overflow:visible}
  .app-layout>.sidebar:before{inset-inline:8px;top:20px}
  .app-layout .sidebar-nav-item{min-width:0;flex:1;padding:34px 6px 10px;font-size:12px}
  .sidebar-footer{position:fixed;top:auto;bottom:12px;inset-inline:0;justify-content:center;z-index:60}
  .sidebar-footer .btn{background:#fffaf0;padding:7px 12px;font-size:12px}
  .app-layout>.main-content{padding:24px 16px 90px}
  .tab-content:has(.search-row){grid-template-columns:minmax(0,1fr)}
  .tab-content:has(.search-row)>div:first-child>div:nth-child(1),.tab-content:has(.search-row)>div:first-child>div:nth-child(2),.tab-content:has(.search-row)>div:first-child>div:nth-child(3),.tab-content:has(.search-row)>div:nth-child(2){grid-column:1}
  .tab-content:has(.search-row)>div:nth-child(3){grid-column:1;grid-row:auto;margin-top:46px}
  .tab-content:has(.search-row)>div:first-child>div:nth-child(1){font-size:26px!important}
  .tab-content:has(.search-row)>div:first-child>div:nth-child(3){grid-template-columns:repeat(2,1fr)}
  .search-row{flex-wrap:wrap}.search-row input{flex:1 1 100%!important}.search-row .btn{flex:1 1 100%;justify-content:center}
}
@media print{.app-layout>.sidebar{display:none}}
