/* Shared CRM design system. The homepage keeps its dedicated layout in
   home-redesign.css; these rules bring all working sections into the same UI. */
:root{
  --crm-bg:#0b0c0f;
  --crm-surface:#121316;
  --crm-surface-raised:#18191d;
  --crm-surface-soft:#202125;
  --crm-line:rgba(255,255,255,.09);
  --crm-line-strong:rgba(255,255,255,.15);
  --crm-text:#f4f1ef;
  --crm-muted:#a4a0a0;
  --crm-faint:#777477;
  --crm-accent:#e84a32;
  --crm-accent-light:#ff9a7b;
  --crm-radius:16px;
  --crm-radius-small:11px;
  --crm-shadow:0 12px 34px rgba(0,0,0,.22);
}

html{scroll-behavior:smooth}
body.adrenaline-ui{
  min-height:100vh;
  color:var(--crm-text)!important;
  background:
    radial-gradient(ellipse at 10% -10%,rgba(232,74,50,.09),transparent 34%),
    linear-gradient(180deg,#0d0e11 0%,var(--crm-bg) 50%,#0e0f11 100%)!important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;
  font-size:14px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
body.adrenaline-ui a,body.auth-page a{-webkit-tap-highlight-color:transparent}
body.adrenaline-ui :focus-visible,body.auth-page :focus-visible{
  outline:2px solid var(--crm-accent-light)!important;
  outline-offset:3px!important;
}

/* Shared header and section frame */
body.adrenaline-ui .role-header{
  grid-template-columns:minmax(0,1fr) minmax(180px,auto) auto!important;
  gap:clamp(14px,2vw,30px)!important;
  min-height:78px;
  padding:12px clamp(18px,3.2vw,52px)!important;
  border-bottom:1px solid var(--crm-line)!important;
  background:rgba(11,12,15,.92)!important;
  box-shadow:0 8px 28px rgba(0,0,0,.18)!important;
  backdrop-filter:blur(18px)!important;
}
body.adrenaline-ui .brand-home-link{
  min-width:0!important;
  gap:clamp(10px,1.4vw,20px)!important;
}
body.adrenaline-ui .site-logo-shell,body.adrenaline-ui .site-logo-img{
  width:clamp(94px,10vw,138px);
  min-width:clamp(94px,10vw,138px);
}
body.adrenaline-ui .site-logo-img{max-height:58px}
body.adrenaline-ui .site-brand-meta{
  gap:4px;
  padding-left:clamp(10px,1.2vw,18px);
  border-left-color:var(--crm-line-strong);
}
body.adrenaline-ui .site-brand-catalog{
  color:#f5efec;
  font-size:10px;
  font-weight:800;
  letter-spacing:.1em;
}
body.adrenaline-ui .site-brand-services{color:#b3ada9;font-size:8px;letter-spacing:.04em}
body.adrenaline-ui .site-brand-return{color:#777477;font-size:8px}
body.adrenaline-ui .current-section{
  justify-self:center;
  min-width:190px;
  max-width:300px;
  padding:9px 13px!important;
  border:1px solid var(--crm-line)!important;
  border-radius:var(--crm-radius-small)!important;
  background:rgba(255,255,255,.035)!important;
}
body.adrenaline-ui .current-section-icon{
  width:34px;height:34px;
  border:1px solid rgba(232,74,50,.26)!important;
  border-radius:10px!important;
  background:rgba(232,74,50,.12)!important;
  color:#ffad93!important;
}
body.adrenaline-ui .current-section strong{font-size:12px!important;font-weight:800!important;letter-spacing:.04em}
body.adrenaline-ui .current-section small{color:var(--crm-muted)!important;font-size:10px!important}
body.adrenaline-ui .role-header-meta{gap:8px!important;min-width:0}
body.adrenaline-ui .user-chip,body.adrenaline-ui .date-chip,body.adrenaline-ui .logout-link{
  border:1px solid var(--crm-line)!important;
  border-radius:var(--crm-radius-small)!important;
  background:rgba(255,255,255,.035)!important;
}
body.adrenaline-ui .user-chip{max-width:210px;padding:8px 11px!important}
body.adrenaline-ui .user-chip strong{color:var(--crm-text)!important;font-size:11px!important;font-weight:750!important}
body.adrenaline-ui .user-chip span{color:var(--crm-muted)!important;font-size:9px!important}
body.adrenaline-ui .date-chip,body.adrenaline-ui .logout-link{min-height:38px;padding:0 11px!important;color:#ded9d6!important;font-size:10px!important}
body.adrenaline-ui .system-state{color:#aaa5a2!important;font-size:10px!important}
body.adrenaline-ui .system-state i{background:#7ed49a!important;box-shadow:0 0 10px rgba(126,212,154,.35)!important}

body.adrenaline-ui .page-heading{
  width:100%;
  max-width:1760px;
  padding:clamp(22px,3vw,38px) clamp(18px,3.2vw,52px) 0!important;
}
body.adrenaline-ui .topbar-title{
  color:var(--crm-text)!important;
  font-size:clamp(27px,3vw,36px)!important;
  font-weight:750!important;
  line-height:1.12!important;
  letter-spacing:-.035em!important;
  text-transform:none!important;
}
body.adrenaline-ui .topbar-sub{margin-top:7px!important;color:var(--crm-muted)!important;font-size:12px!important;line-height:1.5}
body.adrenaline-ui .site-service-rail{
  width:100%;
  max-width:1760px;
  margin:0 auto 8px;
  padding:12px clamp(18px,3.2vw,52px) 15px;
  gap:7px 16px;
  border-bottom-color:var(--crm-line);
  color:#817d7d;
  font-size:9px;
  letter-spacing:.06em;
}
body.adrenaline-ui .role-content{
  width:100%;
  max-width:1760px;
  margin:0 auto!important;
  padding:20px clamp(18px,3.2vw,52px) 56px!important;
}

/* Cards, summary figures and secondary navigation */
body.adrenaline-ui .panel,body.adrenaline-ui .metric,body.adrenaline-ui .day-panel,
body.adrenaline-ui .modal-card,body.adrenaline-ui .period-panel,
body.adrenaline-ui .archive-auto-note,body.adrenaline-ui .material-card,
body.adrenaline-ui .venue-card,body.adrenaline-ui .special-location-card,
body.adrenaline-ui .venue-info-card,body.adrenaline-ui .sales-master-folder,
body.adrenaline-ui .price-global-note,body.adrenaline-ui .travel-total-card,
body.adrenaline-ui .travel-input-panel,body.adrenaline-ui .travel-breakdown-panel{
  border:1px solid var(--crm-line)!important;
  border-radius:var(--crm-radius)!important;
  background:linear-gradient(160deg,rgba(255,255,255,.035),rgba(255,255,255,.012) 55%),var(--crm-surface)!important;
  box-shadow:var(--crm-shadow)!important;
}
body.adrenaline-ui .panel{margin-bottom:16px}
body.adrenaline-ui .panel:hover{transform:none!important}
body.adrenaline-ui .panel-head{padding:18px 20px!important;border-bottom:1px solid var(--crm-line)!important}
body.adrenaline-ui .panel-head h2{color:var(--crm-text)!important;font-size:15px!important;font-weight:750!important;letter-spacing:0!important;text-transform:none!important}
body.adrenaline-ui .panel-head p{margin-top:5px!important;color:var(--crm-muted)!important;font-size:11px!important;line-height:1.5}
body.adrenaline-ui .metric{
  min-width:0;
  padding:16px 18px!important;
  overflow:hidden;
  border-radius:14px!important;
  background:linear-gradient(160deg,rgba(255,255,255,.035),transparent 70%),var(--crm-surface)!important;
}
body.adrenaline-ui .metric::before{width:2px!important;background:linear-gradient(180deg,var(--crm-accent),#f4a16c)!important}
body.adrenaline-ui .metric span{margin-bottom:7px!important;color:var(--crm-muted)!important;font-size:10px!important;font-weight:700!important;letter-spacing:.045em}
body.adrenaline-ui .metric strong{color:var(--crm-text)!important;font-size:clamp(22px,2.3vw,30px)!important;font-weight:720!important;line-height:1.15;overflow-wrap:anywhere}
body.adrenaline-ui .metric.accent{border-color:rgba(232,74,50,.24)!important;background:linear-gradient(135deg,rgba(232,74,50,.1),rgba(255,255,255,.018)),var(--crm-surface)!important}
body.adrenaline-ui .section-subnav{
  width:max-content;
  max-width:100%;
  margin-bottom:16px;
  padding:5px!important;
  gap:4px!important;
  border:1px solid var(--crm-line)!important;
  border-radius:13px!important;
  background:rgba(255,255,255,.025)!important;
  box-shadow:none!important;
}
body.adrenaline-ui .section-subtab{
  min-height:38px!important;
  padding:0 13px!important;
  border:0!important;
  border-radius:9px!important;
  color:#aaa6a4!important;
  font-size:11px!important;
  font-weight:650!important;
  white-space:nowrap;
}
body.adrenaline-ui .section-subtab:hover{background:rgba(255,255,255,.055)!important;color:#fff!important}
body.adrenaline-ui .section-subtab.active{
  background:rgba(232,74,50,.14)!important;
  color:#ffc2ad!important;
  box-shadow:inset 0 0 0 1px rgba(232,74,50,.19)!important;
}
body.adrenaline-ui .section-subtab b{background:rgba(255,255,255,.07)!important;color:inherit!important}

/* Filters, controls, forms and buttons */
body.adrenaline-ui .toolbar-panel{
  align-items:stretch;
  gap:14px;
  padding:14px!important;
  border-radius:14px!important;
}
body.adrenaline-ui .filters{gap:9px;align-items:center}
body.adrenaline-ui input,body.adrenaline-ui select,body.adrenaline-ui textarea{
  min-height:40px;
  padding:9px 11px!important;
  border:1px solid var(--crm-line-strong)!important;
  border-radius:10px!important;
  background:#17181c!important;
  color:var(--crm-text)!important;
  font-size:12px;
  line-height:1.4;
  box-shadow:none!important;
}
body.adrenaline-ui textarea{min-height:90px;resize:vertical}
body.adrenaline-ui input::placeholder,body.adrenaline-ui textarea::placeholder{color:#858184!important;opacity:1}
body.adrenaline-ui input:focus,body.adrenaline-ui select:focus,body.adrenaline-ui textarea:focus{
  border-color:rgba(232,74,50,.72)!important;
  box-shadow:0 0 0 3px rgba(232,74,50,.12)!important;
}
body.adrenaline-ui .form-grid{gap:15px}
body.adrenaline-ui .form-grid label{gap:7px;color:#c5c1bf!important;font-size:11px;font-weight:650!important;line-height:1.35}
body.adrenaline-ui .form-section{margin-top:9px;padding:10px 2px 8px;border-bottom-color:var(--crm-line)!important;color:#f09878!important;font-size:10px;font-weight:800;letter-spacing:.1em}
body.adrenaline-ui .form-actions{gap:9px;flex-wrap:wrap;padding-top:12px}
body.adrenaline-ui .btn{
  min-height:39px!important;
  padding:0 14px!important;
  border-radius:10px!important;
  font-size:10px!important;
  font-weight:700!important;
  letter-spacing:.01em!important;
  text-transform:none!important;
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;
}
body.adrenaline-ui .btn:hover{transform:translateY(-1px)}
body.adrenaline-ui .btn.primary{
  border:1px solid rgba(255,141,109,.26)!important;
  background:linear-gradient(135deg,#d9432d,#f05b38)!important;
  color:#fff!important;
  box-shadow:0 5px 16px rgba(232,74,50,.14);
}
body.adrenaline-ui .btn.primary:hover{background:linear-gradient(135deg,#ed5439,#fa704b)!important;filter:none!important}
body.adrenaline-ui .btn.secondary,body.adrenaline-ui .btn.ghost{
  border:1px solid var(--crm-line-strong)!important;
  background:rgba(255,255,255,.035)!important;
  color:#e3dfdd!important;
}
body.adrenaline-ui .btn.secondary:hover,body.adrenaline-ui .btn.ghost:hover{border-color:rgba(255,255,255,.28)!important;background:rgba(255,255,255,.065)!important;color:#fff!important}
body.adrenaline-ui .btn.danger{border:1px solid rgba(238,92,92,.27)!important;background:rgba(238,92,92,.1)!important;color:#ffb7b7!important}
body.adrenaline-ui .btn.small-btn{min-height:33px!important;padding:0 10px!important;font-size:9px!important}
body.adrenaline-ui .toolbar-actions{gap:8px;flex-wrap:wrap}

/* Lists and tables */
body.adrenaline-ui .table-wrap{
  max-width:100%;
  overflow:auto;
  border-radius:0 0 var(--crm-radius) var(--crm-radius);
  scrollbar-color:#424248 #111215;
}
body.adrenaline-ui table{font-size:12px}
body.adrenaline-ui th{
  padding:12px 13px!important;
  background:#17181c!important;
  border-bottom:1px solid var(--crm-line-strong)!important;
  color:#aaa6a4!important;
  font-size:9px!important;
  font-weight:750!important;
  letter-spacing:.075em;
}
body.adrenaline-ui td{
  padding:12px 13px;
  border-bottom:1px solid rgba(255,255,255,.055)!important;
  color:#e1dddb!important;
  line-height:1.45;
}
body.adrenaline-ui tbody tr{transition:background .14s ease}
body.adrenaline-ui tbody tr:hover{background:rgba(255,255,255,.035)!important}
body.adrenaline-ui td strong{color:#faf7f5!important;font-weight:650!important}
body.adrenaline-ui td small{color:var(--crm-muted)!important;line-height:1.45}
body.adrenaline-ui .click-row:focus-visible{outline-offset:-3px!important}
body.adrenaline-ui .badge,body.adrenaline-ui .availability,body.adrenaline-ui .role-badge,
body.adrenaline-ui .password-state,body.adrenaline-ui .account-state,body.adrenaline-ui .period-chip,
body.adrenaline-ui .material-filter,body.adrenaline-ui .venue-region-chip{
  border-radius:999px!important;
  background:rgba(255,255,255,.045)!important;
  border-color:rgba(255,255,255,.1)!important;
  color:#cbc6c3!important;
}
body.adrenaline-ui .empty{min-height:180px;padding:32px!important;color:var(--crm-muted)!important}
body.adrenaline-ui .empty strong{color:#f0ecea!important;font-size:14px}

/* Sales subpages and order detail components */
body.adrenaline-ui .sales-master-folder,body.adrenaline-ui .retail-source-panel,
body.adrenaline-ui .access-info-panel,body.adrenaline-ui .archive-auto-note,
body.adrenaline-ui .price-global-note,body.adrenaline-ui .tariff-source-card,
body.adrenaline-ui .calc-coeff-note,body.adrenaline-ui .report-finance-readonly{
  border:1px solid var(--crm-line)!important;
  border-radius:13px!important;
  background:rgba(255,255,255,.025)!important;
  color:#ccc7c4!important;
}
body.adrenaline-ui .calendar-item,body.adrenaline-ui .day-panel,body.adrenaline-ui .day-list,
body.adrenaline-ui .calendar-region-group{border-color:var(--crm-line)!important}
body.adrenaline-ui .order-view-section,body.adrenaline-ui .compact-note,
body.adrenaline-ui .cell-note,body.adrenaline-ui .source-links{border-radius:10px!important}
body.adrenaline-ui .modal-backdrop.show{backdrop-filter:blur(6px);background:rgba(0,0,0,.72)}
body.adrenaline-ui .modal-card{padding:24px!important;max-height:min(92vh,920px)!important}
body.adrenaline-ui .modal-title{color:#fff;font-size:19px;font-weight:750}
body.adrenaline-ui .modal-close{width:36px;height:36px;border:1px solid var(--crm-line);border-radius:10px;background:rgba(255,255,255,.04);color:#c8c3c1}
body.adrenaline-ui .modal-close:hover{background:rgba(255,255,255,.09);color:#fff}
body.adrenaline-ui .flash-stack{top:92px;right:clamp(14px,2.5vw,34px);max-width:min(420px,calc(100vw - 28px))}
body.adrenaline-ui .flash{border-radius:12px;background:#15191a;border-color:rgba(126,212,154,.24);color:#c3f0cf;font-size:12px}
body.adrenaline-ui .flash.error{background:#211617;border-color:rgba(238,92,92,.24);color:#ffc2c2}

/* Sign-in and one-page order cards */
body.auth-page{
  color:var(--crm-text)!important;
  background:
    radial-gradient(ellipse at 20% 8%,rgba(232,74,50,.13),transparent 34%),
    radial-gradient(ellipse at 90% 90%,rgba(245,162,108,.055),transparent 30%),
    #0b0c0f!important;
}
body.auth-page .auth-card{
  width:min(460px,calc(100vw - 32px));
  padding:clamp(24px,4vw,40px)!important;
  border:1px solid var(--crm-line)!important;
  border-radius:22px!important;
  background:linear-gradient(155deg,rgba(255,255,255,.045),rgba(255,255,255,.015) 48%),#111215!important;
  box-shadow:0 28px 90px rgba(0,0,0,.38)!important;
}
body.auth-page .auth-heading h1{color:#fff;font-size:25px;font-weight:750;letter-spacing:-.025em}
body.auth-page .auth-heading p{color:var(--crm-muted);font-size:12px;line-height:1.55}
body.auth-page .auth-form label{color:#c5c1bf;font-size:11px;font-weight:650}
body.auth-page input{min-height:43px;border-radius:10px!important;background:#18191d!important;border-color:var(--crm-line-strong)!important}
body.auth-page .auth-message{border-radius:11px;font-size:11px}
body.auth-page .auth-first-note,body.auth-page .master-login-note{border-radius:12px;background:rgba(255,255,255,.025)!important;border-color:var(--crm-line)!important}
body.card-page{background:#0b0c0f!important}
body.card-page .tech-card{border:1px solid var(--crm-line);border-radius:20px;background:#131417;color:#f2efed;box-shadow:var(--crm-shadow)}
body.card-page .tech-grid>div,body.card-page .tech-section{border:1px solid var(--crm-line);border-radius:12px;background:#1a1b1f;color:#f2efed}
body.card-page .tech-grid span,body.card-page .tech-section span{color:var(--crm-muted)}
body.card-page .tech-grid strong,body.card-page .tech-section strong{color:#fff}
@media print{
  body.card-page{background:#fff!important}
  body.card-page .tech-card{border:0;background:#fff;color:#111;box-shadow:none}
  body.card-page .tech-grid>div,body.card-page .tech-section{border:0;background:#f5f6f8;color:#111}
}

@media(max-width:1180px){
  body.adrenaline-ui .role-header{
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"brand meta" "context context";
    gap:10px 16px!important;
  }
  body.adrenaline-ui .role-brand{grid-area:brand}
  body.adrenaline-ui .role-header-meta{grid-area:meta}
  body.adrenaline-ui .current-section,body.adrenaline-ui .home-header-title{grid-area:context;justify-self:start}
  body.adrenaline-ui .site-service-rail{margin-bottom:2px}
}
@media(max-width:820px){
  body.adrenaline-ui .role-header{min-height:0;padding:11px 14px!important}
  body.adrenaline-ui .site-brand-meta{display:none}
  body.adrenaline-ui .site-logo-shell,body.adrenaline-ui .site-logo-img{width:108px;min-width:108px}
  body.adrenaline-ui .current-section{max-width:100%;padding:7px 9px!important}
  body.adrenaline-ui .role-content{padding:16px 14px 36px!important}
  body.adrenaline-ui .page-heading{padding:22px 14px 0!important}
  body.adrenaline-ui .site-service-rail{padding:10px 14px 12px;gap:6px 10px;font-size:8px}
  body.adrenaline-ui .toolbar-panel{flex-direction:column;align-items:stretch}
  body.adrenaline-ui .toolbar-actions{justify-content:flex-start}
  body.adrenaline-ui .section-subnav{width:100%;overflow-x:auto;scrollbar-width:thin}
  body.adrenaline-ui .section-subtab{flex:0 0 auto}
  body.adrenaline-ui .table-wrap{border-radius:0 0 12px 12px}
}
@media(max-width:560px){
  body.adrenaline-ui .role-header{grid-template-columns:minmax(0,1fr) auto!important;gap:8px 10px!important;padding:9px 11px!important}
  body.adrenaline-ui .site-logo-shell,body.adrenaline-ui .site-logo-img{width:88px;min-width:88px}
  body.adrenaline-ui .role-header-meta{gap:5px!important}
  body.adrenaline-ui .user-chip{max-width:108px;padding:6px 8px!important}
  body.adrenaline-ui .logout-link{min-height:34px;padding:0 8px!important}
  body.adrenaline-ui .date-chip{display:none!important}
  body.adrenaline-ui .page-heading{padding:18px 12px 0!important}
  body.adrenaline-ui .role-content{padding:14px 12px 30px!important}
  body.adrenaline-ui .topbar-title{font-size:25px!important}
  body.adrenaline-ui .topbar-sub{font-size:11px!important}
  body.adrenaline-ui .metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  body.adrenaline-ui .metric{padding:12px!important}
  body.adrenaline-ui .metric span{font-size:8px!important}
  body.adrenaline-ui .metric strong{font-size:22px!important}
  body.adrenaline-ui .metric.accent{grid-column:1/-1}
  body.adrenaline-ui .panel-head{padding:15px 14px!important}
  body.adrenaline-ui .toolbar-panel{padding:10px!important}
  body.adrenaline-ui .filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  body.adrenaline-ui .filters .search{grid-column:1/-1;width:100%;min-width:0!important}
  body.adrenaline-ui .filters select,body.adrenaline-ui .filters .btn{width:100%;min-width:0!important}
  body.adrenaline-ui .toolbar-actions{display:flex;flex-wrap:wrap;gap:7px}
  body.adrenaline-ui .toolbar-actions .btn{flex:1 1 auto;min-width:0}
  body.adrenaline-ui .form-grid{grid-template-columns:minmax(0,1fr)!important;gap:12px}
  body.adrenaline-ui .form-grid .span-2{grid-column:1!important}
  body.adrenaline-ui .form-actions{justify-content:stretch}
  body.adrenaline-ui .form-actions .btn{flex:1 1 auto}
  body.adrenaline-ui .modal{padding:10px}
  body.adrenaline-ui .modal-card{width:100%!important;max-height:94dvh!important;padding:20px 15px!important;border-radius:16px!important}
  body.adrenaline-ui .flash-stack{top:84px;right:10px;left:10px;max-width:none}
  body.auth-page .auth-shell{padding:14px}
  body.auth-page .auth-card{width:100%;padding:24px 19px!important;border-radius:16px!important}
}
