/* KG Stok — Bootstrap application theme */
:root {
  --bs-font-sans-serif: Poppins, system-ui, -apple-system, Arial, sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-bg: #f4f5f7;
  --bs-body-color: #303b48;
  --bs-primary: #084793;
  --bs-primary-rgb: 8, 71, 147;
  --bs-link-color: #084793;
  --bs-link-color-rgb: 8, 71, 147;
  --bs-link-hover-color: #05356f;
  --bs-border-color: #dfe3e8;
  --bs-border-radius: .3rem;
  --bs-border-radius-sm: .25rem;
  --bs-border-radius-lg: .4rem;
  --sidebar: 244px;
  --ink: #21364d;
  --muted: #687482;
}
body { font-family: Poppins, system-ui, -apple-system, Arial, sans-serif; font-size: 13px; line-height: 1.65; }
a { text-decoration: none; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.35px; }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 3px solid #719bd0; outline-offset: 3px; }
.btn { font-size: 12px; font-weight: 500; padding: .6rem .95rem; white-space: nowrap; border-radius: 4px; }
.btn svg { width: 17px; height: 17px; vertical-align: -3px; margin-right: 5px; }
.btn-sm { font-size: 11px; padding: .35rem .6rem; }
.btn-primary { --bs-btn-bg: #084793; --bs-btn-border-color: #084793; --bs-btn-hover-bg: #063975; --bs-btn-hover-border-color: #063975; --bs-btn-active-bg: #052e60; --bs-btn-active-border-color: #052e60; --bs-btn-disabled-bg: #084793; --bs-btn-disabled-border-color: #084793; --bs-btn-focus-shadow-rgb: 8,71,147; }
.btn-outline-primary { --bs-btn-color: #084793; --bs-btn-border-color: #b5c6dc; --bs-btn-hover-bg: #084793; --bs-btn-hover-border-color: #084793; --bs-btn-active-bg: #063975; --bs-btn-active-border-color: #063975; }
.btn-light { --bs-btn-bg: #fff; --bs-btn-color: #364556; --bs-btn-border-color: #d4dbe3; --bs-btn-hover-bg: #f3f5f7; --bs-btn-hover-border-color: #aab8c8; }
.btn-link { font-size: 12px; --bs-btn-color: #084793; --bs-btn-hover-color: #063975; }
.form-control, .form-select { background-color: #fff; border-color: #cbd3dd; font-size: 13px; padding: .65rem .75rem; }
.form-control:focus, .form-select:focus { border-color: #719bd0; box-shadow: 0 0 0 3px #08479312; }
.form-control::placeholder { color: #89929e; opacity: 1; }
.form-label { font-size: 12px; font-weight: 500; color: #354558; }
.form-text { font-size: 11px; line-height: 1.8; color: var(--muted); }
.form-check-input:checked { background-color: #084793; border-color: #084793; }
.card { border: 1px solid var(--bs-border-color); background: #fff; box-shadow: none; }
.card-header { background: #fff; padding: 18px 22px; border-color: var(--bs-border-color); }
.sidebar { width: var(--sidebar)!important; position: fixed!important; top: 0; bottom: 0; left: 0; background: #fff!important; border-right: 1px solid var(--bs-border-color)!important; z-index: 1045; }
.sidebar .offcanvas-header { display: flex!important; min-height: 135px; padding: 25px 23px 21px; border-bottom: 1px solid #e7ebef; position: relative; }
.brand { display: block; color: var(--ink); width: 100%; }
.brand-logo { display: block; width: 190px; max-width: 100%; height: auto; }
.brand-product { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 15px; }
.brand-product strong { font-size: 18px; font-weight: 600; letter-spacing: -.5px; color: var(--ink); }
.brand-product>span { font-size: 10px; color: var(--muted); }
.sidebar .offcanvas-body { padding: 25px 13px 18px; overflow-y: auto; }
.workspace-label { color: #7a8591; font-size: 10px; font-weight: 500; margin: 0 12px 9px; }
.sidebar .nav-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; color: #4c5969; border-radius: 4px; font-weight: 400; font-size: 12px; border-left: 3px solid transparent; }
.sidebar .nav-link svg { width: 18px; height: 18px; color: #7a8695; flex-shrink: 0; }
.sidebar .nav-link:hover { background: #f5f7f9; color: var(--ink); }
.sidebar .nav-link.active { background: #edf2f7; color: #084793; border-left-color: #084793; font-weight: 500; }
.sidebar .nav-link.active svg { color: #084793; }
.channel-logo { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; border: 1px solid #e4e7eb; border-radius: 4px; background: #fff; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.channel-logo.woo { color: #70517f; }
.channel-logo.ty { color: #ab581a; }
.channel-logo.hb { color: #b24b1b; }
.sidebar .channel-logo { width: 20px; height: 20px; font-size: 12px; }
.sidebar-account { padding: 20px 10px 0; border-top: 1px solid #e5e9ed; }
.sidebar-user { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.avatar { width: 34px; height: 34px; flex-shrink: 0; border: 1px solid #dfe5ec; border-radius: 4px; background: #eef2f6; color: #39516c; display: flex; align-items: center; justify-content: center; font-weight: 500; }
.app-shell { margin-left: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 61px; background: #fff; border-bottom: 1px solid var(--bs-border-color); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; flex-shrink: 0; }
.breadcrumb-label { font-size: 11px; color: #6b7786; }
.breadcrumb-label .app-name { color: var(--ink); font-weight: 600; }
.breadcrumb-label strong { font-weight: 400; }
.main-content { padding: 28px 32px; max-width: 1700px; width: 100%; margin: 0 auto; flex: 1; min-width: 0; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.page-heading h1 { font-size: 25px; font-weight: 600; margin: 0 0 6px; }
.page-heading p { font-size: 12px; margin: 0; color: var(--muted); line-height: 1.8; }
.inventory-summary { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); overflow: hidden; }
.metric { padding: 21px 24px; min-width: 0; }
.metric+.metric { border-left: 1px solid #e4e8ed; }
.metric-label { font-size: 12px; color: #526172; margin-bottom: 8px; }
.metric-value { font-size: 29px; font-weight: 600; color: var(--ink); letter-spacing: -.6px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.metric-caution .metric-value { color: #966523; }
.metric-danger .metric-value { color: #ae4040; }
.metric-sub { color: #7b8591; font-size: 10px; margin-top: 7px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 10px; }
.section-heading h2 { font-size: 12px; font-weight: 500; margin: 0; color: #46566a; }
.section-heading>span { font-size: 10px; color: #7a8592; }
.channel-strip { display: flex; align-items: center; gap: 12px; padding: 13px 16px; color: inherit; height: 100%; }
a.channel-strip:hover { border-color: #aebdcf; background: #fdfefe; }
.channel-strip strong { font-size: 12px; font-weight: 500; }
.channel-strip small { font-size: 10px; color: #788391; }
.pill { display: inline-flex; align-items: center; font-size: 10px; font-weight: 400; padding: 3px 7px; border-radius: 3px; white-space: nowrap; }
.pill-success { background: #eef5f0; color: #356749; }
.pill-muted { background: #f0f2f4; color: #65717e; }
.pill-warning { background: #faf3e6; color: #875e23; }
.pill-danger { background: #f9eded; color: #a53a3a; }
.inventory-filters { padding: 18px 20px; border-bottom: 1px solid #e0e5eb; }
.inventory-filter-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 14px; }
.inventory-filter-grid>div { min-width: 0; }
.inventory-filters .form-control, .inventory-filters .form-select { font-size: 11px; }
.inventory-filters .form-select { padding-right: 32px; }
.inventory-advanced { margin-top: 17px; }
.inventory-advanced summary { width: fit-content; cursor: pointer; color: #50647c; font-size: 11px; padding: 3px 0; }
.inventory-filter-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.inventory-filter-actions .form-select { width: auto; }
.inventory-legend { padding: 10px 20px; color: #68788b; font-size: 10px; border-bottom: 1px solid #e0e5eb; }
.inventory-table { min-width: 940px; }
.inventory-table .product-info { min-width: 260px; align-items: flex-start; }
.inventory-table>thead>tr>th, .inventory-table>tbody>tr>td { padding-left: 14px; padding-right: 14px; }
.inventory-table>thead>tr>th:first-child, .inventory-table>tbody>tr>td:first-child { padding-left: 20px; }
.inventory-table .product-name { min-width: 210px; }
.product-platforms { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 7px; }
.platform-badge { display: inline-block; padding: 2px 6px; border: 1px solid; border-radius: 3px; font-size: 9px; white-space: nowrap; }
.platform-woo { color: #70517f; background: #f7f3fa; border-color: #e4dbe9; }
.platform-ty { color: #92501e; background: #fff7ef; border-color: #f0dfce; }
.platform-hb { color: #9b4220; background: #fdf3ee; border-color: #eed9cc; }
.platform-paused { color: #687482; background: #f5f6f7; border-color: #dfe3e8; }
.stock-caption { display: block; margin-top: 5px; font-size: 10px; color: #68788b; }
.inventory-date { font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.inventory-date time>span { display: block; font-size: 10px; color: #7b8796; margin-top: 3px; }
.inventory-row-actions { display: inline-flex; align-items: center; flex-direction: column; gap: 5px; }
.table-sort { display: flex; align-items: center; gap: 7px; color: inherit; }
.table-sort>span { color: #929eac; font-size: 13px; }
.table-sort.is-sorted, .table-sort.is-sorted>span { color: #084793; }
.table { --bs-table-bg: #fff; vertical-align: middle; font-size: 12px; margin-bottom: 0; }
.table>thead>tr>th { background: #f6f7f9; color: #526173; font-size: 11px; font-weight: 500; padding: 12px 20px; border-bottom: 1px solid #dce2e9; white-space: nowrap; }
.table>tbody>tr>td { padding: 13px 20px; border-color: #e7ebef; }
.table>tbody>tr:last-child>td { border-bottom: 0; }
.table-hover>tbody>tr:hover>* { --bs-table-bg-state: #f8fafc; }
.product-info { display: flex; align-items: center; gap: 12px; min-width: 225px; }
.product-image { display: flex; align-items: center; justify-content: center; width: 38px; height: 45px; border-radius: 3px; background: #f5f6f8; object-fit: contain; border: 1px solid #e2e6ec; color: #8b99aa; flex-shrink: 0; }
.product-image svg { width: 21px; height: 21px; }
.product-name { color: #344457; font-weight: 500; max-width: 450px; white-space: normal; line-height: 1.65; }
.sku { display: block; color: #7b8796; font-size: 10px; margin-top: 3px; font-variant-numeric: tabular-nums; letter-spacing: .1px; }
.stock-badge { display: inline-block; min-width: 37px; font-weight: 500; font-size: 12px; padding: 4px 7px; border-radius: 3px; text-align: center; font-variant-numeric: tabular-nums; }
.stock-badge.text-bg-success { background: #eef5f0!important; color: #356749!important; }
.stock-badge.text-bg-warning { background: #faf3e6!important; color: #875e23!important; }
.stock-badge.text-bg-danger { background: #f9eded!important; color: #a53a3a!important; }
.stock-actions { display: inline-flex; border: 1px solid #cdd6e0; border-radius: 4px; overflow: hidden; background: #fff; }
.stock-actions button { min-width: 34px; min-height: 32px; padding: 1px 10px; border: 0; background: #fff; font-size: 18px; color: #3f5670; line-height: 1; }
.stock-actions button+button { border-left: 1px solid #cdd6e0; }
.stock-actions button:hover { background: #edf2f7; color: #084793; }
.stock-actions button:focus-visible { outline-offset: -3px; }
.table-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 13px 20px; border-bottom: 1px solid #e0e5eb; flex-wrap: wrap; }
.filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-tabs a { font-size: 11px; color: #667487; padding: 6px 9px; border-radius: 3px; border: 1px solid transparent; }
.filter-tabs a.active { color: #084793; background: #f0f4f8; border-color: #d7e1ed; font-weight: 500; }
.filter-tabs a:hover { color: #084793; background: #f5f7f9; }
.search-form { max-width: 310px; width: 100%; display: flex; gap: 6px; }
.search-form .form-control { font-size: 11px; padding: .5rem .65rem; min-width: 0; }
.table-footer { padding: 14px 20px; border-top: 1px solid #e0e5eb; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.page-link { font-size: 12px; color: #50647c; border-color: #dce3eb; background: #fff; }
.active>.page-link { background: #084793; border-color: #084793; }
.empty-state { text-align: center; padding: 50px 24px!important; font-size: 12px; color: #768294; }
.empty-state strong { display: block; font-size: 14px; color: #465870; font-weight: 500; margin-bottom: 7px; }
.app-footer { display: flex; align-items: center; justify-content: space-between; padding: 16px 32px; font-size: 10px; color: #7d8793; gap: 12px; }
.app-footer strong { font-weight: 500; color: #5b6c7f; }
.alert { font-size: 12px; line-height: 1.8; border-radius: 4px; }
.alert-info { color: #4a607c; background: #edf2f7; border-color: #dce5ef; }
.alert-success { color: #356749; background: #eef5f0; border-color: #d6e8dc; }
.alert-danger { color: #963a3a; background: #faf0f0; border-color: #ecd7d7; }
.auth-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 20px; background: #f2f4f6; }
.auth-card { width: 100%; max-width: 430px; }
.auth-panel { padding: 35px 36px; border-top: 3px solid #084793; }
.auth-brand { display: block; width: 215px; max-width: 100%; margin: 0 auto 29px; }
.auth-brand img { display: block; width: 100%; height: auto; }
.auth-heading { padding-top: 23px; margin-bottom: 25px; border-top: 1px solid #e5e9ee; }
.auth-heading h1 { font-size: 25px; font-weight: 600; margin-bottom: 8px; }
.auth-heading p { color: var(--muted); font-size: 12px; margin: 0; }
.auth-footer { font-size: 10px; color: #7a8592; text-align: center; margin: 20px 0 0; }
.settings-section { padding: 23px; }
.settings-section+.settings-section { border-top: 1px solid #e4e8ed; }
.settings-section h2 { font-size: 14px; font-weight: 500; margin: 0 0 18px; }
.settings-aside { color: #68788b; font-size: 11px; line-height: 1.9; }
.settings-aside h3 { font-size: 13px; color: #344b65; font-weight: 500; margin-bottom: 12px; }
.log-message { max-width: 450px; overflow-wrap: anywhere; white-space: normal; }
.endpoint { font-size: 11px; overflow-wrap: anywhere; background: #f5f7f9; border: 1px solid #e3e8ee; border-radius: 3px; padding: 10px; margin: 7px 0 14px; }
.sync-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f8f9fb; border: 1px solid #dce3eb; border-left: 3px solid #8da3bd; border-radius: 3px; padding: 11px 15px; font-size: 11px; color: #617188; line-height: 1.8; }
.sync-banner a { white-space: nowrap; font-weight: 500; }
.row-disabled { opacity: .55; }
.page-description { max-width: 720px; }
.min-table { min-width: 680px; }
button:disabled { cursor: wait; }
code { color: #4c607a; }
.small { font-size: 11px!important; }
.text-secondary { color: #68788b!important; }
.channel-header-logo { width: 43px; height: 43px; font-size: 23px; border-radius: 5px; }
.skip-link { position: fixed; top: 5px; left: 5px; z-index: 2000; background: #fff; padding: 10px; }
#feedback:empty { display: none; }
#feedback { position: sticky; top: 8px; z-index: 1020; }
@media(min-width:992px) {
  .sidebar .offcanvas-body { height: calc(100dvh - 135px); }
  .sidebar-account { margin-top: auto!important; padding-top: 20px; }
}
@media(max-width:1199px) {
  .inventory-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .main-content { padding: 25px; }
  .topbar { padding: 0 25px; }
  .page-heading { flex-wrap: wrap; }
  .product-name { max-width: 290px; }
  .metric { padding: 20px; }
}
@media(max-width:991px) {
  .app-shell { margin-left: 0; }
  .sidebar { --bs-offcanvas-width: 270px; width: 270px!important; }
  .sidebar .offcanvas-header { padding-right: 38px; }
  .sidebar .btn-close { position: absolute; right: 15px; top: 17px; }
  .sidebar .offcanvas-body { flex-grow: 1; }
  .sidebar-account { margin-top: 28px!important; }
  .main-content { padding: 22px; }
  .topbar { padding: 0 20px; }
  .menu-toggle { padding: 5px 8px; }
  .menu-toggle svg { margin-right: 0; }
  .app-footer { padding: 18px 22px; }
}
@media(max-width:575px) {
  .inventory-filters { padding: 15px; }
  .inventory-filter-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .inventory-legend { padding: 10px 15px; }
  .main-content { padding: 22px 14px; }
  .page-heading { gap: 15px; margin-bottom: 20px; }
  .page-heading h1 { font-size: 23px; }
  .page-heading p { font-size: 11px; }
  .page-heading .btn { font-size: 11px; padding: .55rem .7rem; }
  .inventory-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric { padding: 16px; }
  .metric:nth-child(3) { border-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid #e4e8ed; }
  .metric-value { font-size: 25px; }
  .metric-label { font-size: 11px; }
  .metric-sub { font-size: 9px; }
  .section-heading>span { font-size: 9px; }
  .table-toolbar { padding: 12px; gap: 12px; }
  .search-form { max-width: none; }
  .card-header, .table-footer { padding: 15px; }
  .app-footer span:last-child { display: none; }
  .settings-section { padding: 18px; }
  .channel-strip { padding: 12px 15px; }
  .sync-banner { flex-wrap: wrap; font-size: 10px; }
  .breadcrumb-label { font-size: 10px; }
  .auth-panel { padding: 28px 24px; }
}
