/* CakeCanvas staff and Business portals */
:root {
    --cc-ink: #091b3c;
    --cc-sky: #c9effc;
    --cc-cream: #fff7ee;
    --cc-primary: #ce122c;
    --cc-line: #d6e1eb;
}
body { color: var(--cc-ink); background-color: var(--cc-cream); }
.headerWrapper, .header_outer#top-bar, .topbar, .navbar.navbar-default, .navbar.navbar-inverse {
    background-color: var(--cc-sky);
    border-color: var(--cc-line);
    color: var(--cc-ink);
}
.headerWrapper, #top-bar.header_outer { background-image: url('awning.png'); background-position: top left; background-repeat: repeat-x; background-size: auto 6px; }
.header-logo, .logoouter { background-color: transparent; }
.navbar-default .navbar-nav > li > a, .navbar-inverse .navbar-nav > li > a, .navbar-inverse .navbar-brand { color: var(--cc-ink); }
.navbar-default .navbar-nav > li > a:hover, .navbar-inverse .navbar-nav > li > a:hover { background-color: #e8f8fd; color: var(--cc-ink); }
.btn.btn-primary { background-color: var(--cc-primary); border-color: var(--cc-primary); color: #fff; }
.btn.btn-primary:hover, .btn.btn-primary:focus { background-color: #a41026; border-color: #a41026; }
.panel-default, .modal-content, .dropdown-menu, .form-control { border-color: var(--cc-line); }
.panel-default > .panel-heading, .table > thead > tr > th { background-color: #edf8fc; color: var(--cc-ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #08649c; outline-offset: 2px; }
img.cakecanvas-brand-logo { width: 174px; max-width: 100%; height: auto; max-height: 54px; object-fit: contain; }
.navbar-brand img.cakecanvas-brand-logo { max-height: 40px; }
img.cc-login-logo { display: block; margin: 0 auto 16px; }
.form-signin, .login_outer { background-color: #fff; border: 1px solid var(--cc-line); border-radius: 12px; }
.form-signin-heading { color: var(--cc-ink); font-family: Georgia, serif; }

/* ===== Storefront match (27 Nov 2026): header, nav, controls, footer use the same tokens as
   Migrated_Frontend approved.css. Presentation only; no IDs, handlers or links changed. ===== */
@font-face { font-family: Nunito; src: url('Nunito-Regular.woff2') format('woff2'); font-display: swap; }
:root { --cc-red: #eb1730; --cc-blue: #0b82d8; --cc-muted: #64748b; --cc-line: #dfe7f0; }
body { font-family: Nunito, Arial, sans-serif; }
h1, h2, h3, h4, .panel-title { font-family: Georgia, 'Times New Roman', serif; color: var(--cc-ink); }
/* Header: scalloped awning + sky band, as on the storefront */
.topbar .headerWrapper { position: relative; background-image: none; background-color: var(--cc-sky); padding: 22px 0 10px; border-bottom: 1px solid #b9dfed; }
.topbar .headerWrapper::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 16px; z-index: 1; pointer-events: none;
    background-image: radial-gradient(circle at 14px 0, #e0002a 14px, transparent 15px), radial-gradient(circle at 14px 0, #fff 14px, transparent 15px);
    background-position: 0 0, 28px 0; background-size: 56px 18px; background-repeat: repeat-x; }
.topbar .headerWrapper img.cakecanvas-brand-logo { width: 245px; max-height: 82px; }
.topbar .div_topcontactno { font: 700 16px/1.4 Georgia, serif; color: var(--cc-ink); }
.topbar .ancAccountMainLink { border: 1px solid var(--cc-line); border-radius: 6px; background: #fff; color: var(--cc-ink); }
.topSociallinks_headerbar a { color: var(--cc-ink); }
/* Navigation strip: cream with bold serif links */
.nav-wrapper, .nav-wrapper .navbar.navbar-default { background-color: #fff9f2; border-color: var(--cc-line); border-radius: 0; }
.nav-wrapper .navbar-nav > li > a { font: 700 15px/1.4 Georgia, 'Times New Roman', serif; color: var(--cc-ink); }
.nav-wrapper .navbar-nav > li > a:hover { background: transparent; color: var(--cc-red); }
/* Search: rounded input, red GO button */
.topsearchpannel .headerinput { border: 1px solid #b8c7d6; border-radius: 6px 0 0 6px; font: 13px Arial, sans-serif; color: var(--cc-ink); }
.topsearchpannel .headerbtn, .topsearchpannel .btn { background-color: var(--cc-red); border-color: var(--cc-red); color: #fff; }
.topsearchpannel .headerbtn { border-radius: 0 6px 6px 0; font: 700 12px Arial, sans-serif; }
/* Controls */
.btn { border-radius: 8px; }
.btn.btn-primary, .btn.btn-danger { background-color: var(--cc-red); border-color: var(--cc-red); }
.form-control, input[type=text], input[type=email], input[type=password], input[type=tel], select, textarea { border-color: #b8c7d6; border-radius: 6px; }
.form-control:focus, input:focus, select:focus, textarea:focus { border-color: var(--cc-blue); box-shadow: 0 0 0 3px #0b82d81a; }
.toppendingbox { border-radius: 8px; }
/* Footer, matching the storefront footer band */
.cc-portal-footer { background: var(--cc-sky); border-top: 1px solid #b9dfed; margin-top: 32px; padding: 18px 0; color: var(--cc-ink); }
.cc-portal-footer .container { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cc-portal-footer img { width: 170px; height: auto; }
.cc-portal-footer-tag { font: 15px/1.4 Georgia, serif; }
.cc-portal-footer-copy { margin-left: auto; font: 12px/1.4 Arial, sans-serif; color: var(--cc-muted); }
@media (max-width: 767px) { .topbar .headerWrapper img.cakecanvas-brand-logo { width: 174px; } .cc-portal-footer-copy { margin-left: 0; } }
/* The CRM header is position:fixed and .spacing reserves its height (was 90px). Reserve the taller storefront-style header. */
body > .topbar ~ .spacing { margin-top: 160px !important; }
/* Section title bars (h3.list-head): storefront page-title style — serif, no grey box, short red underline */
h3.list-head { background: transparent !important; border: 0; border-bottom: 1px solid var(--cc-line); font: 700 22px/1.3 Georgia, 'Times New Roman', serif !important; color: var(--cc-ink); padding: 10px 6px 12px; position: relative; }
h3.list-head::after { content: ""; position: absolute; left: 6px; bottom: -2px; width: 78px; border-bottom: 3px solid var(--cc-red); border-radius: 50%; }
h3.list-head a { font: 12px Arial, sans-serif; color: var(--cc-red); }
/* Responsive QA 27 Nov */
.left-account-bar { border-radius: 8px; }
/* Tablet/small laptop: pending tiles were too narrow, the count dropped below the tile */
@media (min-width: 768px) and (max-width: 1199px) {
  .toppendingbox, .left-account-bar { padding: 0 8px !important; }
  .toppendingbox .leftsec span { font-size: 13px; }
  .toppendingbox .leftsec font { font-size: 11px; }
  .toppendingbox .rightsec, .toppendingbox .rightsec span { font-size: 24px !important; line-height: 50px; }
}
/* Tablet: Email field uses col-md-4 while its siblings use col-sm-4, so it dropped to its own full-width row */
@media (min-width: 768px) and (max-width: 991px) { .form-group.col-sm-4 ~ .form-group.col-md-4 { float: left; width: 33.33333%; } }
/* Spacer under the fixed header, per breakpoint (header measured 125 / 137 / 156px) */
@media (max-width: 767px) { body > .topbar ~ .spacing { margin-top: 130px !important; } }
@media (min-width: 768px) and (max-width: 1199px) { body > .topbar ~ .spacing { margin-top: 142px !important; } }
/* Buttons: one height and shape everywhere; storefront palette (red primary, navy secondary) */
.container .btn, .container .btn-sm { min-height: 32px; padding: 6px 14px; font: 600 13px/1.5 Arial, sans-serif; border-radius: 8px; vertical-align: middle; }
.container .btn-xs { min-height: 26px; padding: 3px 10px; font-size: 12px; border-radius: 6px; }
.container .btn-danger, .container .btn-primary { background-color: var(--cc-red); border-color: var(--cc-red); color: #fff; }
.container .btn-danger:hover, .container .btn-primary:hover { background-color: #c8102a; border-color: #c8102a; color: #fff; }
.container .btn-success { background-color: var(--cc-ink); border-color: var(--cc-ink); color: #fff; }
.container .btn-success:hover { background-color: #14305f; border-color: #14305f; color: #fff; }
.container .black-btn, .container .btn-default { background-color: #fff; border: 1px solid var(--cc-ink); color: var(--cc-ink); }
.container .black-btn:hover, .container .btn-default:hover { background-color: #eef6fb; color: var(--cc-ink); }
/* Header search input white, as on the storefront */
.topsearchpannel .headerinput { background-color: #fff !important; }
/* Phone: pending tiles two per row instead of a full screen of stacked bars */
@media (max-width: 767px) {
  .toppendingbox, .left-account-bar { float: left !important; width: calc(50% - 4px) !important; margin: 0 4px 6px 0; padding: 0 10px !important; }
  .left-account-bar { width: calc(100% - 4px) !important; }
}
/* Tablet and phone: wide data tables scroll sideways inside their card instead of being clipped */
@media (max-width: 991px) { .container table.table { display: block; width: 100%; overflow-x: auto; } }
/* Pagination in storefront palette (was Bootstrap blue) */
.pagination > li > a, .pagination > li > span { color: var(--cc-ink); border-color: var(--cc-line); }
.pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover { background-color: var(--cc-red) !important; border-color: var(--cc-red) !important; color: #fff !important; }
.pagination > li > a:hover { background-color: #eef6fb; color: var(--cc-ink); }
/* Account button: keep "Hi, Name" on one line */
.topbar .ancAccountMainLink { white-space: nowrap; display: inline-block; padding: 4px 10px; }
.topbar .guest-box1 ul.loggedin { white-space: nowrap; }
/* Login pages: awning strip, larger logo, sky footer (same as Business login) */
body:has(.form-signin)::before { content: ""; position: fixed; top: 0; left: 0; right: 0; z-index: 5; height: 16px; background: radial-gradient(circle at 14px 0, #e0002a 14px, transparent 15px) 0 0/56px 18px repeat-x, radial-gradient(circle at 14px 0, #fff 14px, transparent 15px) 28px 0/56px 18px repeat-x, var(--cc-sky); }
img.cc-login-logo { width: 210px; max-height: 70px; }
.form-signin .btn-primary { font: 700 16px/1.4 Georgia, serif; }
*:has(> * > p.text-muted.text-center), *:has(> p.text-muted.text-center) { background-color: var(--cc-sky) !important; border-top: 1px solid #b9dfed; }
p.text-muted.text-center { color: var(--cc-ink); }

/* ===== CakeCanvas: button hygiene (all apps, 27 Nov late) ===== */
.btn + .btn,.btn + .btn-group,.btn-group + .btn,.btn-group + .btn-group,a.btn + a.btn,input.btn + input.btn,input.btn + a.btn,a.btn + input.btn{margin-left:8px}
.btn-group{display:inline-flex!important;align-items:stretch;vertical-align:middle;flex-wrap:nowrap}
.btn-group > .btn{float:none!important;margin-top:0!important;margin-bottom:0!important}
.btn-group > .btn + .btn,.btn-group > .btn + .dropdown-toggle{margin-left:-1px!important}
.btn-group > .btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0!important;border-bottom-right-radius:0!important}
.btn-group > .btn + .btn,.btn-group > .btn + .dropdown-toggle{border-top-left-radius:0!important;border-bottom-left-radius:0!important}
.btn-group > .btn:only-child{border-radius:inherit}
td > .btn,td > a.btn,td > input.btn,td > .btn-group{margin-top:4px;margin-bottom:4px}
td > .btn + br + .btn,td > a.btn + br + a.btn{margin-left:0}
.btn.bg-black,.btn.btn-black:not(.btn-searchgo),a.bg-black.btn{background:#091b3c!important;border-color:#091b3c!important;color:#fff!important}
.btn.bg-black:hover,.btn.btn-black:not(.btn-searchgo):hover{background:#13305f!important}
.input-group-btn > .btn + .btn{margin-left:-1px}

/* ===== CakeCanvas CRM: touch / iPad / phone layer (27 Nov late) — content only, header (.topbar) untouched ===== */
@media (pointer:coarse){
 .btn:not(.topbar .btn):not(.btn-searchgo){min-height:44px;padding:10px 18px;font-size:15px;line-height:1.4}
 .btn-sm:not(.topbar .btn){min-height:40px;padding:8px 14px;font-size:14px}
 .btn-xs:not(.topbar .btn),a.normallink.btn{min-height:38px;min-width:38px;padding:7px 12px;font-size:14px}
 .form-control:not(.topbar .form-control),.form-control.input-sm:not(.topbar .form-control){min-height:42px;height:auto;font-size:16px;padding:8px 12px}
 textarea.form-control{min-height:84px}
 input[type=checkbox]:not(.topbar *),input[type=radio]:not(.topbar *){width:22px;height:22px;accent-color:#eb1730;vertical-align:middle;margin-right:8px}
 .dropdown-menu:not(.topbar .dropdown-menu) > li > a{padding:12px 18px;font-size:15px}
 table.table > tbody > tr > td,table.table > thead > tr > th{font-size:14.5px;padding:10px 8px;vertical-align:middle}
 .pagination > li > a,.pagination > li > span{min-width:44px;min-height:44px;padding:11px 14px;font-size:15px;text-align:center}
 div:has(> table.table){overflow-x:auto;-webkit-overflow-scrolling:touch}
 .btn:not(.topbar .btn) + .btn,.btn:not(.topbar .btn) + a.btn{margin-left:8px}
 form .btn:not(.topbar .btn){margin-top:4px;margin-bottom:4px}
}
@media (max-width:575px){
 .container .row > [class*=col-sm-]:not(.topbar *),.container .row > [class*=col-md-]:not(.topbar *){width:100%;float:none}
 .form-control:not(.topbar .form-control):not([type=checkbox]):not([type=radio]){width:100%!important;max-width:100%!important}
 .form-inline .form-group{display:block;margin-bottom:10px}
 .container .btn-lg,.container .btn-block{width:100%}
 .modal-dialog{margin:10px}
}

/* ===== CakeCanvas: phone button spacing (all apps) ===== */
@media (max-width:767px){
 .btn:not(.btn-group > .btn):not(.btn-searchgo):not(.topbar .btn):not(.navbar .btn):not(#top-bar .btn){margin-bottom:8px}
 .btn.pull-right:not(.btn-searchgo){margin-left:8px}
 .btn-group:has(> .btn:nth-child(3)):not(:has(> .dropdown-toggle)){flex-wrap:wrap;gap:6px}
 .btn-group:has(> .btn:nth-child(3)):not(:has(> .dropdown-toggle)) > .btn{border-radius:999px!important;margin-left:0!important}
 .input-group{flex-wrap:nowrap}
}

@media (pointer:coarse){ .form-control.input-sm:not(.topbar .form-control),select.input-sm,input.input-sm{min-height:42px!important;height:42px!important;font-size:16px!important} }

@media (max-width:767px){ .btn-group + .btn-group,.btn + .btn-group,.btn-group + .btn{margin-left:0!important} .btn-group:not(.topbar .btn-group):not(.navbar .btn-group){margin:0 8px 8px 0} .btn-group > .btn{white-space:normal} }

.btn.bg-black *,.btn.btn-black:not(.btn-searchgo) *,.btn.black-btn.active *{color:#fff!important}

/* ===== CakeCanvas UNIFIED SIZE SCALE (final layer, identical in all apps, 27 Nov late) =====
   Desktop >1366px unchanged. Tablet/iPad <=1366px or touch: btn 40 / sm 36 / xs 32 / lg 46, fields 40, pills 38.
   Phone <=767px: btn 36 / sm 34 / xs 30 / lg 42, fields 38 (16px text so iPhone does not zoom), pills 32. */
@media (pointer:coarse){
 html body .btn:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn){min-height:40px!important;height:auto!important;padding:8px 16px!important;font-size:14.5px!important;line-height:1.4!important}
 html body .btn-lg:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn){min-height:46px!important;padding:10px 20px!important;font-size:16px!important}
 html body .btn-sm:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn){min-height:36px!important;padding:7px 13px!important;font-size:14px!important}
 html body .btn-xs:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn){min-height:32px!important;min-width:32px!important;padding:5px 10px!important;font-size:13px!important}
 html body .btn-group > .dropdown-toggle:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn){padding-left:10px!important;padding-right:10px!important;min-width:0!important}
 html body .btn-group > .btn{align-self:stretch!important}
 html body input.form-control:not(textarea):not(.headerinput):not(.txtSearchbox):not(.topbar *):not(#top-bar *):not(.navbar-static-top *):not([type=checkbox]):not([type=radio]),html body select.form-control:not(textarea):not(.headerinput):not(.txtSearchbox):not(.topbar *):not(#top-bar *):not(.navbar-static-top *):not([type=checkbox]):not([type=radio]),html body .form-control.input-sm:not(textarea):not(.headerinput):not(.txtSearchbox):not(.topbar *):not(#top-bar *):not(.navbar-static-top *):not([type=checkbox]):not([type=radio]){height:40px!important;min-height:40px!important;padding:7px 12px!important;font-size:16px!important;line-height:1.4!important}
 html body a.stt,html body a.stt.active,html body li.active > a.stt,html body .TagCatli li,html body .leftCatli li{min-height:38px!important;padding:8px 16px!important;font-size:14px!important;line-height:1.4!important;margin:3px!important;display:inline-flex!important;align-items:center!important}
 html body .div_buttons_outer,html body .updatesorting_outer{margin-bottom:14px!important}
 html body .pagination > li > a,html body .pagination > li > span{min-width:40px!important;min-height:40px!important;padding:9px 12px!important}
}
@media (max-width:767px){
 html body .btn:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn){min-height:36px!important;padding:7px 14px!important;font-size:14px!important}
 html body .btn-lg:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn){min-height:42px!important;padding:9px 18px!important;font-size:15px!important}
 html body .btn-sm:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn){min-height:34px!important;padding:6px 12px!important;font-size:13px!important}
 html body .btn-xs:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn){min-height:30px!important;min-width:30px!important;padding:4px 9px!important;font-size:12.5px!important}
 html body input.form-control:not(textarea):not(.headerinput):not(.txtSearchbox):not(.topbar *):not(#top-bar *):not(.navbar-static-top *):not([type=checkbox]):not([type=radio]),html body select.form-control:not(textarea):not(.headerinput):not(.txtSearchbox):not(.topbar *):not(#top-bar *):not(.navbar-static-top *):not([type=checkbox]):not([type=radio]),html body .form-control.input-sm:not(textarea):not(.headerinput):not(.txtSearchbox):not(.topbar *):not(#top-bar *):not(.navbar-static-top *):not([type=checkbox]):not([type=radio]){height:38px!important;min-height:38px!important;padding:6px 10px!important}
 html body a.stt,html body a.stt.active,html body li.active > a.stt,html body .TagCatli li,html body .leftCatli li{min-height:32px!important;padding:5px 12px!important;font-size:13px!important;margin:2px!important}
 html body input[type=checkbox],html body input[type=radio]{width:18px!important;height:18px!important}
 html body table td,html body table th{font-size:13.5px!important}
 html body .innerhead h1,html body .innerhead h2,html body .innerhead h3,html body .panel-heading{font-size:18px!important}
 html body .pagination > li > a,html body .pagination > li > span{min-width:36px!important;min-height:36px!important;padding:7px 10px!important}
 /* Start + End date share one row on phones */
 html body .search-field > form > [class*=col-]:has(input.hasDatepicker,input.datepicker,input[type=date],input[placeholder*='Date']),html body .search-field:not(:has(> form)) > [class*=col-]:has(input.hasDatepicker,input.datepicker,input[type=date],input[placeholder*='Date']){flex:1 1 calc(50% - 5px)!important}
}

/* ===== CakeCanvas ALIGNMENT LAYER (final, all apps, 27 Nov 23:10) =====
   One button height = one field height per breakpoint, so buttons and fields line up in every row.
   Tablet/iPad: 40px  |  Phone: 38px  |  icon/extra-small: 32 / 30px. Desktop >1366px unchanged. */
@media (pointer:coarse){
 html body .btn:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn),html body .btn-sm:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn){min-height:40px!important;height:auto!important;padding:4px 16px!important;font-size:14.5px!important;line-height:1.25!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;vertical-align:middle!important;gap:6px;box-sizing:border-box!important;text-align:center}
 html body input.btn:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn),html body input.btn-sm:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn){display:inline-block!important;line-height:30px!important;padding-top:0!important;padding-bottom:0!important;height:40px!important}
 html body .btn-xs:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn){min-height:32px!important;min-width:32px!important;padding:2px 10px!important;font-size:13px!important}
 html body input.btn-xs:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn){height:32px!important;line-height:26px!important}
 html body .btn-lg:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn){min-height:46px!important;padding:6px 20px!important;font-size:16px!important}
 html body .btn-group > .btn{align-self:stretch!important}
 html body .btn-group > .dropdown-toggle:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn){padding:0 11px!important;min-width:0!important;border-left:1px solid rgba(255,255,255,.45)!important}
 html body .btn-group > .btn-default.dropdown-toggle,html body .btn-group > .btn-info.dropdown-toggle{border-left-color:rgba(9,27,60,.25)!important}
 html body .btn .caret{margin:0!important}
 html body table td{vertical-align:top!important}
 html body table th{vertical-align:bottom!important}
 html body td > .btn,html body td > a.btn,html body td > .btn-group{margin:0 6px 6px 0!important}
 html body td > br + .btn,html body td > br + a.btn{margin-top:0!important}
}
@media (max-width:767px){
 html body .btn:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn),html body .btn-sm:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn){min-height:38px!important;padding:3px 14px!important;font-size:14px!important}
 html body input.btn:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn),html body input.btn-sm:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn){height:38px!important;line-height:30px!important}
 html body .btn-xs:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn){min-height:30px!important;min-width:30px!important;padding:2px 9px!important;font-size:12.5px!important}
 html body input.btn-xs:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn){height:30px!important;line-height:24px!important}
 html body .btn-lg:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn){min-height:42px!important;font-size:15px!important}
}

/* plain text inputs (incl. markup typos like class="form-contro") look and size exactly like .form-control (html body .container:not(.topbar *)) */
html body .container:not(.topbar *) input[type=text]:not(.headerinput):not(.txtSearchbox),html body .container:not(.topbar *) input[type=number],html body .container:not(.topbar *) input[type=email],html body .container:not(.topbar *) input[type=search]:not(.headerinput),html body .container:not(.topbar *) input[type=tel],html body .container:not(.topbar *) input[type=password],html body .container:not(.topbar *) input[type=date],html body .container:not(.topbar *) input:not([type]):not(.headerinput){border:1px solid #d9cbb8!important;border-radius:10px!important;box-shadow:none!important;background-color:#fff;color:#091b3c;outline:none}
html body .container:not(.topbar *) input[type=text]:not(.headerinput):not(.txtSearchbox):focus,html body .container:not(.topbar *) input[type=number]:focus,html body .container:not(.topbar *) input[type=email]:focus,html body .container:not(.topbar *) input[type=search]:not(.headerinput):focus,html body .container:not(.topbar *) input[type=tel]:focus,html body .container:not(.topbar *) input[type=password]:focus,html body .container:not(.topbar *) input[type=date]:focus,html body .container:not(.topbar *) input:not([type]):not(.headerinput):focus{border-color:#0b82d8!important;box-shadow:0 0 0 3px rgba(11,130,216,.15)!important}
@media (pointer:coarse){ html body .container:not(.topbar *) input[type=text]:not(.headerinput):not(.txtSearchbox),html body .container:not(.topbar *) input[type=number],html body .container:not(.topbar *) input[type=email],html body .container:not(.topbar *) input[type=search]:not(.headerinput),html body .container:not(.topbar *) input[type=tel],html body .container:not(.topbar *) input[type=password],html body .container:not(.topbar *) input[type=date],html body .container:not(.topbar *) input:not([type]):not(.headerinput){height:40px!important;min-height:40px!important;padding:7px 12px!important;font-size:16px!important;vertical-align:middle} }
@media (max-width:767px){ html body .container:not(.topbar *) input[type=text]:not(.headerinput):not(.txtSearchbox),html body .container:not(.topbar *) input[type=number],html body .container:not(.topbar *) input[type=email],html body .container:not(.topbar *) input[type=search]:not(.headerinput),html body .container:not(.topbar *) input[type=tel],html body .container:not(.topbar *) input[type=password],html body .container:not(.topbar *) input[type=date],html body .container:not(.topbar *) input:not([type]):not(.headerinput){height:38px!important;min-height:38px!important;padding:6px 10px!important} }

/* fields and buttons share one vertical alignment everywhere */
html body input:not([type=checkbox]):not([type=radio]):not([type=hidden]),html body select,html body .btn{vertical-align:middle}
html body #main-container input:not([type=checkbox]):not([type=radio]),html body #main-container select{vertical-align:middle!important}

@media (max-width:767px){ html body .btn:not(.btn-group > .btn):not(.btn-searchgo):not(.topbar .btn):not(.navbar .btn):not(#top-bar .btn){margin-top:4px!important;margin-bottom:4px!important} html body input:not([type=checkbox]):not([type=radio]):not([type=hidden]),html body select{margin-top:4px;margin-bottom:4px} }

@media (pointer:coarse){ html body form .form-control:not(.topbar *),html body form select:not(.topbar *),html body form input[type=text]:not(.topbar *),html body form input[type=search]:not(.topbar *),html body .container .btn:not(.topbar .btn):not(.btn-group > .btn),html body .container .form-control:not(.topbar *){margin-top:4px!important;margin-bottom:4px!important} }

@media (max-width:991px){ html body > .container,html body .spacing ~ .container,html body .container:not(.topbar .container):not(.headerWrapper .container){padding-left:15px!important;padding-right:15px!important;max-width:100%!important} }

/* a button never spills out of its column; long labels wrap inside it */
html body [class*=col-] > .btn:not(.btn-group > .btn){max-width:100%;white-space:normal}

/* ===== Phone compact layer v2 + fixed photo boxes (html body) — 27 Nov 23:45 ===== */
html body table td img:not(.glyphicon):not([src*='icon']):not([width='16']):not([height='16']),html body .orderWrappernew img.img,html body td a > img.img{width:72px!important;height:72px!important;min-width:72px;object-fit:cover;border-radius:10px;border:1px solid #f0e6da;background:#fff7ee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23e8b7bf' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M13 9v5M20 7v7M27 9v5'/%3E%3Crect x='10' y='14' width='20' height='8' rx='2'/%3E%3Crect x='6' y='22' width='28' height='12' rx='2'/%3E%3C/g%3E%3C/svg%3E") center/44% no-repeat;color:transparent!important;font-size:0!important;overflow:hidden;display:inline-block;vertical-align:top}
@media (max-width:767px){
 html body .btn:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn),html body .btn-sm:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn){min-height:34px!important;padding:2px 12px!important;font-size:13px!important}
 html body input.btn:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn),html body input.btn-sm:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn){height:34px!important;line-height:28px!important}
 html body .btn-xs:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn){min-height:28px!important;min-width:28px!important;padding:1px 8px!important;font-size:12px!important}
 html body .btn-lg:not(.btn-searchgo):not(.navbar-toggle):not(.headerbtn):not(.topbar .btn):not(#top-bar .btn):not(.navbar-static-top .btn){min-height:40px!important;font-size:14px!important}
 html body input.form-control:not(textarea):not([type=checkbox]):not([type=radio]):not(.headerinput):not(.txtSearchbox),html body select.form-control,html body .form-control.input-sm:not(textarea):not([type=checkbox]):not([type=radio]):not(.headerinput):not(.txtSearchbox),html body select,html body input[type=text]:not(textarea):not([type=checkbox]):not([type=radio]):not(.headerinput):not(.txtSearchbox),html body input[type=number],html body input[type=email],html body input[type=search]:not(textarea):not([type=checkbox]):not([type=radio]):not(.headerinput):not(.txtSearchbox),html body input[type=date],html body input[type=password],html body input:not([type]):not(textarea):not([type=checkbox]):not([type=radio]):not(.headerinput):not(.txtSearchbox){height:36px!important;min-height:36px!important;padding:5px 10px!important;font-size:16px!important}
 html body a.stt,html body a.stt.active,html body li.active > a.stt,html body .TagCatli li,html body .leftCatli li{min-height:30px!important;padding:4px 11px!important;font-size:12.5px!important}
 html body table td,html body table th{font-size:13px!important;padding:8px 6px!important}
 html body table td img:not(.glyphicon):not([src*='icon']),html body td a > img.img{width:56px!important;height:56px!important;min-width:56px}
 html body label{font-size:13.5px}
}

/* photo boxes: only product photos (img.img); icons and stars back to natural size; photo above the item text */
html body table td img:not(.img),html body #main-container table td img:not(.img),html body:has(#div_sidebar) .maincontainer table td img:not(.img){width:auto!important;height:auto!important;min-width:0!important;background:none!important;border:0!important;border-radius:0!important;font-size:inherit!important;color:inherit!important;object-fit:initial}
html body #main-container .divprddet a > img.img,html body #main-container td a > img.img{position:static!important;display:block!important;width:64px!important;height:64px!important;margin:0 0 8px!important}
html body #main-container .divprddet > br{display:none}
@media (max-width:767px){ html body #main-container .divprddet a > img.img,html body #main-container td a > img.img{width:56px!important;height:56px!important} }

/* only product photos (img.img) get the photo box; every other table image keeps its natural size */
html body table td img:not(.img):not(.glyphicon):not([src*='icon']):not([width='16']):not([height='16']),html body #main-container table td img:not(.img):not(.glyphicon):not([src*='icon']):not([width='16']):not([height='16']),html body:has(#div_sidebar) .maincontainer table td img:not(.img):not(.glyphicon):not([src*='icon']):not([width='16']):not([height='16']){width:auto!important;height:auto!important;min-width:0!important;max-width:100%;background:none!important;border:0!important;border-radius:0!important;font-size:inherit!important;color:inherit!important;object-fit:initial!important;content:normal!important}
html body #main-container table td img.imgstar:not(.img):not(.glyphicon):not([src*='icon']):not([width='16']):not([height='16']),html body table td img.imgstar:not(.img):not(.glyphicon):not([src*='icon']):not([width='16']):not([height='16']){height:14px!important;width:auto!important}

/* ===== 28 Nov 2026: header tiles + cart (presentation only) ===== */
/* Six red tiles: even 6px gaps, a little space below the header strip */
.bot-margin-10:has(> .toppendingbox) { display: flex; gap: 6px; margin-top: 8px; flex-wrap: nowrap; }
.bot-margin-10:has(> .toppendingbox) > div { float: none; width: auto; flex: 1 1 0; min-width: 0; }
@media (max-width: 767px) {
  .bot-margin-10:has(> .toppendingbox) { flex-wrap: wrap; }
  .bot-margin-10:has(> .toppendingbox) > div { flex: 1 1 calc(50% - 6px); }
}
/* Cart: the white "Cart" word sat on top of the icon on the light header. Keep the icon, show the count as a badge. */
.cart-pan ul.cart li.dropdown > a { font-size: 0; display: block; width: 44px; height: 30px; margin-left: 0; color: var(--cc-ink); }
.cart-pan ul.cart .count { font: 700 11px/18px Arial, sans-serif; color: #fff; background: var(--cc-red); border-radius: 9px;
  min-width: 18px; height: 18px; padding: 0 5px; text-align: center; top: -6px; left: 26px; width: auto; box-shadow: 0 0 0 2px #fff; }
.cart-pan ul.cart li.dropdown { display: flex; align-items: center; }

/* ===== 28 Nov 2026 (owner review): CRM header + page title rows ===== */
/* Social media icons belong to the storefront, not the CRM */
.topSociallinks_headerbar { display: none !important; }
/* Search group: "All Cakes" rounded on the left, GO rounded on the right, input square in the middle */
.topsearchpannel label.dropdown, .topsearchpannel label.dropdown > .dropdown-toggle { border-radius: 6px 0 0 6px !important; }
.topsearchpannel .headerinput { border-radius: 0 !important; }
/* Page titles with action buttons/links: everything on one line, vertically centred, above the title underline */
h3.list-head:has(> .pull-right) { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
h3.list-head > .pull-right { float: none !important; margin: 0 !important; }
h3.list-head > .pull-right:first-of-type { margin-left: auto !important; }
h3.list-head > a.pull-right:not(.btn) { font: 600 14px/1.4 Nunito, Arial, sans-serif !important; }
