/* Franchise workspace. Loaded after the vendor theme. */
.wrapper { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #243b36; }
.wrapper .section-container { background: #f4f7f6; min-height: calc(100vh - 72px); margin-bottom: 0 !important; }
.wrapper .content-wrapper { border-top: 0; padding: 20px; }
.topnavbar-wrapper .topnavbar { background: #fff; background-image: none; min-height: 72px; border-bottom: 1px solid #e4ebe8; box-shadow: 0 2px 12px #183e2e05; flex-wrap: nowrap; }
.topnavbar .navbar-header { background: #fff; background-image: none; height: 72px; }
.topnavbar .navbar-brand { padding: 12px 20px; }
.topnavbar .brand-logo img, .topnavbar .brand-logo-collapsed img { max-height: 46px; width: auto; }
.topnavbar .navbar-nav > .nav-item > .nav-link { color: #526b63; padding: 23px 18px; }
.topnavbar .navbar-nav > .nav-item > .nav-link:hover { color: #087b55; }
.portal-label { padding-left: 4px; font-weight: 650; font-size: 14px; }
.portal-label small { display: block; color: #7d8e88; font-size: 11px; font-weight: 400; margin-top: 3px; }
.topbar-actions { align-items: center; gap: 10px; }
.shell-button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; border: 1px solid #dce6e1; border-radius: 8px; padding: 10px 15px; background: #fff; color: #34544a; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .15s; }
.shell-button:hover { color: #087b55; background: #f1f8f4; text-decoration: none; }
.shell-button-primary { background: #087b55; color: #fff; border-color: #087b55; }
.shell-button-primary:hover { background: #066345; color: #fff; }
.franchise-account { margin: 0 20px; }
.account-toggle { display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: transparent; color: #34544a; cursor: pointer; text-align: left; }
.account-avatar { width: 38px; height: 38px; border: 1px solid #cfe6da; border-radius: 50%; background: #ebf5ef; display: grid; place-items: center; color: #087b55; }
.account-details { max-width: 160px; }
.account-details strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-details small { color: #7d8e88; font-size: 11px; }
.account-toggle > em { font-size: 10px; }
.franchise-account .dropdown-menu { border: 1px solid #e1e9e4; border-radius: 12px; box-shadow: 0 12px 35px #183e2e14; padding: 8px; min-width: 230px; margin-top: 16px; }
.franchise-account .dropdown-item { padding: 10px 12px; font-size: 13px; border-radius: 6px; }
.franchise-account .dropdown-item em { margin-right: 8px; }
.wrapper .aside-container, .wrapper .aside-container .sidebar { background: #122e26; }
.wrapper .aside-container .aside-inner { padding-top: 72px; }
.sidebar > .sidebar-nav { padding: 20px 10px; }
.sidebar .nav-heading { color: #8aa99c; font-size: 10px; letter-spacing: 1.8px; padding: 10px 16px 18px; }
.sidebar .sidebar-nav > li { border: 0; background: transparent; }
.sidebar .sidebar-nav > li > a { border: 0; border-radius: 8px; color: #c4d4cc; padding: 14px 12px; font-size: 12px; margin-bottom: 5px; font-weight: 500; }
.sidebar .sidebar-nav > li > a > em { color: #8cafa0; }
.sidebar .sidebar-nav > li > a:hover, .sidebar .sidebar-nav > li > a:focus { background: #204338; color: #fff; }
.sidebar .sidebar-nav > li.active > a, .sidebar .sidebar-nav > li.active > a:hover { background: #087b55; color: #fff; }
.sidebar .sidebar-nav > li.active > a > em { color: #fff; }
/* Override the vendor's active-parent rules, including floating submenus. */
.wrapper .aside-container .sidebar-subnav,
.wrapper .aside-container .sidebar-nav > li.active > .sidebar-subnav,
.wrapper .aside-container .sidebar-nav > li.open > .sidebar-subnav {
    background: #10291f;
    padding: 6px;
    margin: 4px 0 10px;
    border: 1px solid #29483b;
    border-radius: 8px;
}
.wrapper .aside-container .sidebar-subnav > li { padding: 0; }
.wrapper .aside-container .sidebar-subnav > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
    color: #d5e5dd;
    white-space: normal;
    text-indent: 0;
    border-radius: 6px;
}
.wrapper .aside-container .sidebar-subnav > li > a > em {
    flex: 0 0 12px;
    width: 12px;
    margin: 0;
    font-size: 10px;
    color: #8cafa0;
    text-align: center;
}
.wrapper .aside-container .sidebar-subnav > li > a:hover,
.wrapper .aside-container .sidebar-subnav > li > a:focus {
    background-color: #204338 !important;
    color: #fff;
}
.wrapper .aside-container .sidebar-subnav > li.active > a {
    background-color: #087b55 !important;
    color: #fff;
}
.wrapper .aside-container .sidebar-subnav > li.active > a > em { color: #fff; }
.wrapper .aside-container .sidebar-subnav > .sidebar-subnav-header { color: #c4d4cc; }
.wrapper .aside-container .sidebar-subnav.nav-floating { margin-top: 0; margin-bottom: 0; }
.sub-triger { float: right; font-size: 9px !important; margin: 3px 0 0 !important; width: auto !important; }
.franchise-dashboard { max-width: 1800px; margin: auto; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.eyebrow { color: #087b55; font-size: 10px; font-weight: 700; letter-spacing: 1.7px; }
.dashboard-heading h1 { font-size: 30px; font-weight: 700; letter-spacing: -.8px; margin: 8px 0; }
.dashboard-heading p, .sales-panel-heading p, .dashboard-quick-actions p { color: #778a82; font-size: 13px; margin: 0; line-height: 1.6; }
.dashboard-date { white-space: nowrap; color: #637970; font-size: 12px; background: #fff; border: 1px solid #e1e9e4; padding: 10px 14px; border-radius: 8px; }
.dashboard-date em { margin-right: 7px; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.metric-card { color: #243b36; background: #fff; border: 1px solid #e1e9e4; padding: 16px; border-radius: 10px; box-shadow: 0 3px 8px #183e2e03; transition: transform .15s, border-color .15s; min-width: 0; }
.metric-card:hover { transform: translateY(-3px); border-color: #99bfae; color: #243b36; text-decoration: none; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #72847c; font-size: 12px; font-weight: 500; }
.metric-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; font-size: 16px; flex-shrink: 0; }
.metric-green { color: #087b55; background: #e8f5ee; }.metric-blue { color: #397eb6; background: #edf4fc; }.metric-amber { color: #b07a21; background: #fff5e3; }.metric-purple { color: #8062b7; background: #f3effb; } .metric-black { color: #022414; background: #939e8e3d; }
.metric-card > strong { display: block; /* font-size: clamp(21px, 2vw, 28px); */ font-size: 17px; font-weight: 700; letter-spacing: -.8px; margin: 10px 0 12px; overflow-wrap: anywhere; }
.metric-card > strong small { font-size: 12px; font-weight: 400; letter-spacing: 0; color: #7d8e88; }
.metric-bottom { border-top: 1px solid #eef2ef; padding-top: 10px; font-size: 11px; color: #7d8e88; display: flex; justify-content: space-between; gap: 8px; }
.metric-bottom em { color: #087b55; }
.dashboard-quick-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; background: #eaf3ed; border: 1px solid #d9e8de; border-radius: 10px; margin-bottom: 18px; }
.dashboard-quick-actions > div { display: flex; align-items: center; gap: 16px; }
.quick-icon { color: #087b55; font-size: 21px; }
.dashboard-quick-actions h2, .sales-panel h2 { font-size: 16px; font-weight: 650; margin: 0 0 5px; }
.dashboard-quick-actions .quick-links { flex-shrink: 0; gap: 10px; }
.sales-panel { background: #fff; border: 1px solid #e1e9e4; border-radius: 12px; overflow: hidden; }
.sales-panel-heading { padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sales-panel-heading > a { color: #087b55; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sales-panel-heading > a em { margin-left: 6px; }
.dashboard-sales-table { margin: 0; font-size: 12px; }
.dashboard-sales-table thead th { background: #f7f9f8; border-top: 1px solid #edf1ee; border-bottom: 1px solid #e4ebe6; padding: 10px 12px; white-space: nowrap; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: #73877c; }
.dashboard-sales-table tbody td { border-top: 1px solid #edf1ee; padding: 10px 12px; vertical-align: middle; white-space: nowrap; }
.dashboard-sales-table tbody tr:hover { background: #fafcfb; }
.dashboard-sales-table .sales-empty { text-align: center; padding: 32px 16px; color: #7d8e88; white-space: normal; }
.sale-status { padding: 5px 9px; border-radius: 20px; font-size: 10px; background: #f6f1e5; color: #8f6a24; }
.sale-status-complete { background: #e8f5ee; color: #087b55; }
.sale-view { color: #087b55; border: 1px solid #d9e8de; border-radius: 5px; padding: 5px 10px; }
.sales-panel-footer { border-top: 1px solid #edf1ee; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #7d8e88; }
.sales-refresh { border: 0; background: transparent; color: #087b55; cursor: pointer; padding: 5px; }.sales-refresh em { margin-right: 5px; }.sales-refresh:disabled { opacity: .5; cursor: wait; }
.wrapper a:focus-visible, .wrapper button:focus-visible, .table-responsive:focus-visible { outline: 3px solid #46b890; outline-offset: 3px; }
.layout-fixed .wrapper .section-container { margin-top: 72px; }
.aside-collapsed .sidebar > .sidebar-nav { padding-left: 0; padding-right: 0; }
.aside-collapsed .sidebar .nav-heading { display: none; }
.aside-collapsed .sidebar .sidebar-nav > li > a { border-radius: 0; }
.aside-collapsed .sidebar .nav-floating { background: #122e26; }
@media (max-width: 1199px) { .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }.dashboard-quick-actions { flex-wrap: wrap; }.metric-card > strong { font-size: 28px; } }
@media (max-width: 767.98px) {
    .topnavbar .navbar-header { width: 80px; }.topnavbar .navbar-brand { padding: 18px 10px; }.topnavbar .brand-logo img, .topnavbar .brand-logo-collapsed img { max-height: 36px; max-width: 60px; }.topnavbar .navbar-header .brand-logo { display: block; }.topnavbar .navbar-header .brand-logo-collapsed { display: none; }
    .topnavbar .navbar-nav > .nav-item > .nav-link { padding: 23px 12px; }.portal-label { font-size: 12px; }.portal-label small { display: none; }
    .franchise-account { margin: 0 12px; }.account-details, .account-toggle > em { display: none; }
    .wrapper .content-wrapper { padding: 16px 12px; }.dashboard-heading { align-items: flex-start; flex-direction: column; gap: 12px; }.dashboard-heading h1 { font-size: 26px; }
    .dashboard-metrics { gap: 10px; }.metric-card { padding: 12px; }.metric-card > strong { font-size: 23px; }.metric-top { align-items: flex-start; flex-direction: column-reverse; gap: 8px; }.metric-bottom { font-size: 10px; }
    .dashboard-quick-actions { padding: 12px; }.dashboard-quick-actions .quick-links { flex-wrap: wrap; }.sales-panel-heading { padding: 12px; align-items: flex-start; }.sales-panel-heading p { font-size: 11px; }.sales-panel-footer { padding: 8px 12px; }
}
@media (max-width: 359px) { .dashboard-metrics { grid-template-columns: 1fr; }.portal-label { display: none; } }
@media (prefers-reduced-motion: reduce) { .metric-card, .shell-button { transition: none; } }
.topnavbar .navbar-header { flex-shrink: 0; padding-left: 0; }
.topnavbar .navbar-header .navbar-brand { padding: 12px 16px; }
.topnavbar .navbar-header .brand-logo, .topnavbar .navbar-header .brand-logo-collapsed { padding: 0; }
@media (max-width: 767.98px) { .topnavbar .navbar-header .navbar-brand { padding: 18px 10px; } }

/* Account profile */
.franchise-profile { max-width: 1500px; margin: auto; }
.profile-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.profile-heading h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.6px; }
.profile-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: start; gap: 16px; }
.profile-summary, .profile-panel { background: #fff; border: 1px solid #e1e9e4; border-radius: 10px; overflow: hidden; }
.profile-summary { padding: 24px 16px 0; text-align: center; }
.profile-avatar { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; background: #e8f5ee; color: #087b55; font-size: 26px; }
.profile-summary h2 { font-size: 18px; font-weight: 650; margin: 0 0 8px; overflow-wrap: anywhere; }
.profile-registration { display: inline-block; background: #f0f6f2; color: #087b55; border-radius: 5px; padding: 4px 9px; font-size: 11px; overflow-wrap: anywhere; max-width: 100%; }
.profile-summary-store { display: flex; align-items: baseline; justify-content: center; gap: 8px; font-size: 12px; color: #637970; margin: 18px 0; overflow-wrap: anywhere; }
.profile-summary-store span { min-width: 0; }
.profile-readonly { border-top: 1px solid #edf1ee; margin: 0 -16px; padding: 12px; background: #fafcfb; color: #778a82; font-size: 11px; }
.profile-readonly em { margin-right: 5px; }
.profile-sections { display: grid; gap: 14px; min-width: 0; }
.profile-panel h2 { display: flex; align-items: center; gap: 9px; margin: 0; padding: 13px 16px; border-bottom: 1px solid #edf1ee; font-size: 14px; font-weight: 650; }
.profile-panel h2 em { color: #087b55; font-size: 15px; }
.profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 16px; }
.profile-field { min-width: 0; }
.profile-field-wide { grid-column: 1 / -1; }
.profile-field label { display: block; color: #71857b; font-size: 11px; font-weight: 500; margin: 0 0 5px; }
.profile-field .form-control[readonly] { height: 36px; border: 1px solid #e4ebe6; border-radius: 6px; background: #f8faf9; color: #2d493e; padding: 7px 10px; font-size: 13px; box-shadow: none; }
.profile-field .form-control:focus { border-color: #6aa88b; outline: 2px solid #d4ecdf; }
.profile-field .form-control::placeholder { color: #8a9b92; }
.profile-feedback { margin-bottom: 14px; padding: 10px 14px; border-radius: 7px; background: #eaf3ed; color: #426350; font-size: 12px; }
.profile-feedback-error { background: #fff2e7; color: #855625; }
.profile-feedback button { border: 0; padding: 0 4px; background: transparent; color: inherit; font-weight: 650; text-decoration: underline; cursor: pointer; }
@media (max-width: 991.98px) { .profile-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 12px; } }
@media (max-width: 767.98px) {
    .profile-layout { grid-template-columns: minmax(0, 1fr); }.profile-heading h1 { font-size: 23px; }.profile-heading .shell-button { padding: 8px 10px; font-size: 11px; }
    .profile-summary { padding-top: 16px; }.profile-avatar { width: 48px; height: 48px; font-size: 22px; margin-bottom: 10px; }.profile-summary-store { margin: 12px 0; }
    .profile-fields { padding: 12px; gap: 12px; }.profile-panel h2 { padding: 12px; }
}
@media (max-width: 479.98px) { .profile-fields { grid-template-columns: minmax(0, 1fr); } }

/* Password settings */
.franchise-password { max-width: 1100px; margin: auto; }
.password-panel { max-width: 720px; border: 1px solid #e1e9e4; border-radius: 10px; background: #fff; overflow: hidden; }
.password-panel-heading { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #edf1ee; }
.password-icon { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 10px; background: #e8f5ee; color: #087b55; font-size: 18px; }
.password-panel-heading h2 { font-size: 16px; font-weight: 650; margin: 0 0 4px; }
.password-panel-heading p { margin: 0; color: #778a82; font-size: 12px; line-height: 1.5; }
.password-panel-body { padding: 20px; }
.password-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.password-field { min-width: 0; }.password-field-wide { grid-column: 1 / -1; }
.password-field label { display: block; font-size: 12px; font-weight: 500; color: #526e60; margin-bottom: 6px; }
.password-field .form-control { height: 40px; border: 1px solid #dce6e0; border-radius: 6px; padding: 9px 12px; font-size: 13px; color: #2d493e; background: #fafcfb; box-shadow: none; }
.password-field .form-control:focus { background: #fff; border-color: #6aa88b; outline: 2px solid #d4ecdf; }
.password-field .form-control::placeholder { color: #8a9b92; }
.password-field small { display: block; margin-top: 6px; color: #778a82; font-size: 11px; }
.password-input { position: relative; }.password-input .form-control { padding-right: 44px; }
.password-visibility { position: absolute; top: 1px; right: 1px; width: 38px; height: 38px; border: 0; border-radius: 5px; background: transparent; color: #71857b; cursor: pointer; }.password-visibility:hover { color: #087b55; background: #edf5f0; }
.password-form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; border-top: 1px solid #edf1ee; margin-top: 20px; padding-top: 16px; }
.password-feedback { padding: 10px 12px; margin-bottom: 16px; font-size: 12px; border: 1px solid #eed8bf; border-radius: 6px; background: #fff5e9; color: #855625; }
@media (max-width: 575.98px) { .password-fields { grid-template-columns: minmax(0, 1fr); gap: 14px; }.password-panel-heading, .password-panel-body { padding: 14px; }.password-form-actions { margin-top: 16px; padding-top: 14px; } }

/* Wallet request form and history */
.franchise-wallet { max-width: 1600px; margin: auto; }
.wallet-form-panel { border: 1px solid #e1e9e4; border-radius: 10px; background: #fff; margin-bottom: 16px; overflow: hidden; }
.wallet-form-panel[hidden] { display: none; }
.wallet-form-heading { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #edf1ee; }
.wallet-form-heading h2 { margin: 0 0 4px; font-size: 15px; font-weight: 650; }
.wallet-form-heading p { margin: 0; color: #778a82; font-size: 12px; line-height: 1.5; }
.wallet-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; padding: 16px; }
.wallet-field { min-width: 0; }.wallet-field label { display: block; color: #526e60; font-size: 12px; font-weight: 500; margin-bottom: 6px; }
.wallet-field .form-control { height: 38px; border: 1px solid #dce6e0; border-radius: 6px; background: #fafcfb; color: #2d493e; font-size: 13px; padding: 8px 10px; box-shadow: none; }
.wallet-field .form-control:focus { border-color: #6aa88b; outline: 2px solid #d4ecdf; background: #fff; }
.wallet-field .form-control::placeholder { color: #8a9b92; }
.wallet-field textarea.form-control { height: auto; min-height: 70px; resize: vertical; }
.wallet-field .wallet-file { height: auto; min-height: 38px; padding: 6px; }
.wallet-file::file-selector-button { border: 0; border-radius: 4px; background: #e8f5ee; color: #087b55; font-size: 12px; padding: 5px 9px; margin-right: 8px; cursor: pointer; }
.wallet-field small { display: block; color: #778a82; font-size: 11px; margin-top: 5px; }
.wallet-form-footer { border-top: 1px solid #edf1ee; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.wallet-form-footer > div { display: flex; gap: 8px; flex-shrink: 0; }
#wallet-form-message { color: #526e60; font-size: 12px; }
.wallet-history-table .wallet-description { white-space: normal; min-width: 170px; max-width: 280px; overflow-wrap: anywhere; }
.wallet-status-rejected { background: #fceceb; color: #b34a42; }
.wallet-delete { border: 1px solid #f0d8d5; border-radius: 5px; background: #fff7f6; color: #b34a42; font-size: 11px; padding: 5px 10px; cursor: pointer; }
.wallet-delete:hover { background: #fceceb; }.wallet-delete:disabled { opacity: .5; cursor: wait; }
.wallet-form-footer button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 575.98px) {
    .wallet-fields { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 12px; }.wallet-form-heading { padding: 12px; }
    .wallet-form-footer { align-items: flex-start; flex-direction: column; padding: 12px; }.wallet-form-footer > div { align-self: flex-end; }
}
