:root {
    --bg: #f3f6fa;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --line: #dbe3ef;
    --line-dark: #c9d5e5;
    --text: #111827;
    --muted: #667085;
    --blue: #ea5b22;
    --blue-dark: #c74716;
    --blue-soft: #fff1e8;
    --green: #12966f;
    --red: #d92d20;
    --charcoal: #3f3f42;
    --orange: #ea5b22;
    --ink: #172033;
    --teal: #087f8c;
    --teal-soft: #e7f6f7;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.crm-app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    background: #eef3f7;
}

.crm-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 18px 14px;
    background: #172033;
    color: #ffffff;
}

.crm-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    margin-bottom: 18px;
    padding: 10px;
    color: #ffffff;
    text-decoration: none;
}

.crm-logo {
    width: 104px;
    height: 36px;
    object-fit: contain;
    object-position: left center;
    border-radius: 4px;
    background: #ffffff;
}

.crm-brand strong,
.crm-brand small {
    display: block;
}

.crm-brand small {
    margin-top: 3px;
    color: #aeb8c8;
    font-size: 12px;
}

.crm-menu {
    display: grid;
    gap: 4px;
}

.crm-menu span {
    margin: 14px 10px 5px;
    color: #8fa0b7;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.crm-menu a {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    color: #e8edf5;
    text-decoration: none;
    font-weight: 700;
}

.crm-menu a:hover,
.crm-menu a.is-active {
    background: #24324c;
    color: #ffffff;
    box-shadow: inset 3px 0 0 var(--orange);
}

.crm-main {
    min-width: 0;
    padding: 18px 22px 32px;
}

.crm-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.crm-topbar h1,
.crm-topbar p {
    margin: 0;
}

.crm-topbar h1 {
    font-size: 24px;
    color: var(--ink);
}

.crm-topbar p {
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.45;
}

.crm-top-actions,
.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.crm-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 12px;
    padding: 22px;
    border: 1px solid #cdd9e8;
    border-radius: 8px;
    background: #ffffff;
}

.crm-hero h2 {
    max-width: 820px;
    margin: 5px 0 8px;
    color: var(--ink);
    font-size: 24px;
    line-height: 1.25;
}

.crm-hero p {
    max-width: 820px;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.eyebrow {
    color: var(--teal);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.crm-stats .stat-card {
    border-left: 4px solid var(--teal);
}

.stat-card small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
}

.crm-workflows,
.data-hub-summary,
.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.crm-workflows a,
.data-hub-summary article,
.setting-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    text-decoration: none;
}

.crm-workflows strong,
.data-hub-summary strong,
.setting-card strong {
    color: var(--ink);
    font-size: 17px;
}

.crm-workflows span,
.data-hub-summary span,
.setting-card small,
.setting-card p {
    color: var(--muted);
    line-height: 1.45;
}

.crm-data-hub {
    display: grid;
    gap: 12px;
}

.crm-toolbar {
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.search-form {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    width: min(560px, 100%);
    min-height: 36px;
    border: 1px solid var(--line-dark);
    border-radius: 6px;
    background: #ffffff;
    color: var(--muted);
    overflow: hidden;
}

.search-form span {
    text-align: center;
}

.search-form input {
    min-height: 34px;
    border: 0;
    outline: 0;
    padding: 0 8px;
}

.crm-table th {
    background: #f1f7f8;
    color: var(--ink);
}

.crm-record-detail {
    border-top: 1px solid var(--line);
}

.crm-record-detail .tab-panel {
    padding: 18px;
}

.crm-record-detail h3 {
    margin: 0 0 8px;
}

button,
input,
select,
textarea {
    font: inherit;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    padding: 0 18px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    display: block;
    width: 132px;
    height: 34px;
    object-fit: contain;
    object-position: left center;
}

.brand.compact .brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 7px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #22b8f0;
    color: #08304f;
    font-weight: 700;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    line-height: 1.1;
}

.brand small {
    color: var(--charcoal);
    font-size: 12px;
    margin-top: 2px;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #344054;
    font-size: 13px;
}

.module-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 38px;
    padding: 0 18px;
    background: var(--blue);
    overflow-x: auto;
}

.module-nav a {
    flex: 0 0 auto;
    color: #ffffff;
    text-decoration: none;
    padding: 9px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}

.module-nav a:hover,
.module-nav a.is-active {
    background: #b94114;
}

.nav-dropdown {
    position: relative;
    flex: 0 0 auto;
}

.nav-dropdown > a {
    display: inline-flex;
}

.nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 40;
    display: none;
    min-width: 420px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 12px 26px rgba(16, 24, 40, 0.18);
}

.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu {
    display: grid;
}

.mega-menu {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.nav-menu span {
    display: block;
    margin: 4px 8px 8px;
    color: var(--muted);
    font-weight: 700;
    font-size: 12px;
}

.module-nav .nav-menu a {
    display: block;
    color: #344054;
    background: transparent;
    border-radius: 4px;
    padding: 9px 10px;
    font-weight: 400;
}

.module-nav .nav-menu a:hover {
    color: var(--blue-dark);
    background: var(--blue-soft);
}

.new-badge {
    display: inline-flex;
    align-items: center;
    min-height: 16px;
    margin-left: 6px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ff1f1f;
    color: #ffffff;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
}

.module-nav .sale-link {
    margin-left: auto;
    background: #ffffff;
    color: var(--blue-dark);
}

.shell {
    padding: 16px 20px 26px;
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.page-head h1 {
    margin: 0 0 4px;
    font-size: 22px;
}

.page-head p {
    margin: 0;
    color: var(--muted);
}

.primary-button,
.outline-button,
.ghost-button,
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.primary-button {
    border: 1px solid var(--blue);
    background: var(--blue);
    color: #ffffff;
}

.primary-button:hover,
.outline-button:hover,
.ghost-button:hover {
    box-shadow: 0 0 0 2px rgba(234, 91, 34, 0.12);
}

.outline-button {
    border: 1px solid var(--blue);
    background: #ffffff;
    color: var(--blue-dark);
}

.ghost-button,
.icon-button {
    border: 1px solid var(--line-dark);
    background: #ffffff;
    color: #344054;
}

.topbar-actions,
.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.is-hidden {
    display: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.stat-card,
.panel,
.table-shell,
.filters {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.stat-card {
    padding: 14px 16px;
}

.stat-card span {
    display: block;
    color: var(--muted);
    margin-bottom: 6px;
}

.stat-card strong {
    font-size: 22px;
}

.panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.8fr);
    gap: 12px;
}

.panel {
    padding: 16px;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}

.panel-heading h2 {
    margin: 0;
    font-size: 17px;
}

.panel-heading span {
    color: var(--muted);
    font-size: 13px;
}

.bar-chart {
    display: flex;
    align-items: end;
    gap: 10px;
    min-height: 300px;
    padding-top: 18px;
    border-bottom: 1px solid var(--line);
}

.bar-item {
    display: grid;
    align-items: end;
    justify-items: center;
    gap: 9px;
    width: 38px;
    height: 260px;
}

.bar {
    width: 100%;
    min-height: 8px;
    border-radius: 4px 4px 0 0;
    background: var(--blue);
}

.timeline {
    display: grid;
    gap: 13px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 12px 1fr;
    gap: 10px;
}

.timeline-item p {
    margin: 4px 0;
    color: var(--muted);
}

.timeline-item small {
    color: #8a94a6;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    margin-top: 5px;
    background: var(--muted);
}

.dot.success {
    background: var(--green);
}

.dot.failed {
    background: var(--red);
}

.workspace {
    display: grid;
    gap: 12px;
}

.product-workspace {
    grid-template-columns: 206px minmax(0, 1fr);
}

.filters {
    padding: 12px 10px;
}

.filter-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
}

.filter-title a {
    color: var(--blue-dark);
    font-size: 12px;
    text-decoration: none;
}

.filter-block {
    display: grid;
    gap: 7px;
    margin-top: 14px;
}

.filter-block span {
    font-weight: 700;
    font-size: 13px;
}

.field {
    width: 100%;
    min-height: 30px;
    border: 1px solid var(--line-dark);
    border-radius: 5px;
    background: #ffffff;
    color: #344054;
    padding: 0 9px;
}

.radio-line {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    padding: 0 8px;
    border: 1px solid var(--line-dark);
    border-radius: 5px;
    background: #ffffff;
}

.data-area {
    min-width: 0;
}

.data-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.search-box {
    display: flex;
    align-items: center;
    width: min(520px, 100%);
    height: 32px;
    border: 1px solid var(--line-dark);
    border-radius: 6px;
    background: #ffffff;
    color: var(--muted);
    padding: 0 10px;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 0 8px;
}

.table-shell {
    overflow: auto;
}

.data-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
    background: #ffffff;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid var(--line);
    padding: 9px 10px;
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #eaf4ff;
    color: #101828;
    font-size: 12px;
    font-weight: 700;
}

.data-table tbody tr:hover {
    background: #f8fbff;
}

.toggle-detail {
    cursor: pointer;
}

.selected-row {
    background: #eef7ff;
    outline: 1px solid var(--blue);
    outline-offset: -1px;
}

.summary-row {
    font-weight: 700;
}

.check-cell {
    width: 38px;
    text-align: center;
}

.number-cell {
    text-align: right;
    white-space: nowrap;
}

.sku {
    color: #0f3f77;
    font-weight: 700;
}

.product-name {
    display: flex;
    align-items: center;
    gap: 9px;
}

.thumb {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    background: var(--blue-soft);
    color: var(--blue-dark);
    font-size: 12px;
    font-weight: 700;
}

.stock {
    color: var(--blue-dark);
    font-weight: 700;
}

.product-detail-row td {
    padding: 0;
    border-right: 1px solid var(--blue);
    border-left: 1px solid var(--blue);
    border-bottom: 1px solid var(--blue);
}

.detail-tabs {
    display: flex;
    gap: 22px;
    min-height: 38px;
    padding: 0 18px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.detail-tabs a,
.detail-tabs button {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    color: #344054;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.detail-tabs button {
    border-top: 0;
    border-right: 0;
    border-left: 0;
    background: transparent;
    cursor: pointer;
}

.detail-tabs a.is-active,
.detail-tabs button.is-active {
    color: var(--blue-dark);
    border-bottom-color: var(--blue);
}

.product-detail {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 16px;
    padding: 16px 18px 14px;
    background: #ffffff;
}

.tab-panel {
    background: #ffffff;
}

.info-box {
    padding: 18px;
    color: #101828;
    line-height: 1.6;
}

.info-box h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.info-box p {
    margin: 0;
    color: #344054;
}

.detail-media {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-soft);
    overflow: hidden;
}

.detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-media span {
    font-size: 28px;
    font-weight: 700;
    color: var(--blue-dark);
}

.detail-main h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.detail-main p {
    margin: 0 0 8px;
    color: var(--muted);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.detail-tags span {
    padding: 4px 8px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #344054;
    font-weight: 700;
    font-size: 12px;
}

.analysis-link {
    color: var(--blue-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    gap: 12px 24px;
    margin-top: 14px;
}

.compact-grid {
    padding: 18px;
    margin-top: 0;
}

.detail-grid > div {
    min-height: 44px;
    border-bottom: 1px solid var(--line);
}

.detail-grid small,
.supplier-box small {
    display: block;
    color: var(--muted);
    margin-bottom: 5px;
}

.detail-grid strong,
.supplier-box strong {
    display: block;
    color: #101828;
    font-weight: 500;
}

.mini-table-wrap {
    padding: 16px 18px 18px;
    overflow-x: auto;
}

.mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.mini-table th,
.mini-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.mini-table th {
    background: #f8fafc;
    color: #344054;
    font-weight: 700;
}

.supplier-box {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-soft);
}

.detail-actions {
    display: grid;
    grid-template-columns: auto auto 1fr auto auto;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.link-button {
    border: 0;
    background: transparent;
    color: #344054;
    font-weight: 700;
    cursor: pointer;
}

.table-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 2px 0;
    color: var(--muted);
    font-size: 12px;
}

.empty-state {
    width: 100%;
    padding: 28px;
    color: var(--muted);
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: 6px;
}

.module-state {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
}

.module-state strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

.module-state p {
    max-width: 760px;
    color: var(--muted);
    line-height: 1.6;
}

.workspace-grid {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 12px;
}

.module-filters {
    align-self: start;
    min-height: calc(100vh - 160px);
}

.module-workspace {
    min-width: 0;
}

.module-table .summary-row td {
    background: #ffffff;
    color: #111827;
}

.module-table .summary-row span {
    color: var(--muted);
    margin-left: 10px;
}

.chip-list.stacked {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    min-height: 28px;
    padding: 0 12px;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    background: #ffffff;
    color: #344054;
    cursor: pointer;
}

.chip.is-active {
    border-color: var(--blue);
    background: var(--blue);
    color: #ffffff;
}

.radio-filter {
    display: grid;
    gap: 8px;
}

.radio-filter label {
    display: flex;
    align-items: center;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid var(--line-dark);
    border-radius: 5px;
    background: #ffffff;
}

.module-detail {
    border-top: 1px solid var(--blue);
    background: #ffffff;
}

.module-detail textarea {
    display: block;
    width: 100%;
    min-height: 120px;
    resize: vertical;
    border: 1px solid var(--line-dark);
    border-radius: 6px;
    padding: 12px;
    color: #344054;
    background: #ffffff;
}

.empty-inline {
    padding: 14px;
    border: 1px dashed var(--line-dark);
    border-radius: 6px;
    color: var(--muted);
    background: var(--surface-soft);
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px 16px;
    border-top: 1px solid var(--line);
}

.detail-actions button,
.detail-actions a {
    border: 0;
    background: transparent;
    color: #344054;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.detail-actions button:hover,
.detail-actions a:hover {
    color: var(--blue-dark);
}

body.has-modal {
    overflow: hidden;
}

.modal-row td {
    height: 0;
    padding: 0 !important;
    border: 0 !important;
    line-height: 0;
}

.modal-layer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 20px;
    line-height: normal;
    background: rgba(15, 23, 42, 0.54);
}

.modal-layer.is-hidden {
    display: none !important;
}

.modal-card {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--line);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.24);
}

.modal-card header,
.modal-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.modal-card footer {
    border-top: 1px solid var(--line);
    border-bottom: 0;
    justify-content: flex-end;
}

.modal-card h2 {
    margin: 0;
    font-size: 17px;
}

.modal-card header button {
    border: 0;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    color: var(--text);
}

.modal-card p,
.modal-card > input,
.modal-card > .detail-grid {
    margin: 16px;
}

.sync-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px 320px;
    gap: 24px;
    align-items: start;
}

.steps {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.8;
}

.sync-note {
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid #ffd2bf;
    border-radius: 6px;
    background: #fff7f3;
    color: #5f2a12;
    line-height: 1.5;
}

.sync-action {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 18px;
}

.sync-action p {
    color: var(--muted);
}

.sync-action code {
    display: block;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafc;
    color: #101828;
    white-space: normal;
    overflow-wrap: anywhere;
}

.muted-text {
    color: var(--muted);
    line-height: 1.5;
}

.sync-action form {
    margin-top: 10px;
}

.sync-action button {
    width: 100%;
}

.toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 50;
    max-width: min(360px, calc(100vw - 36px));
    padding: 12px 14px;
    border-radius: 6px;
    background: #101828;
    color: #ffffff;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.24);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.sync-notifier {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 70;
    width: min(360px, calc(100vw - 36px));
    overflow: hidden;
    border: 1px solid #d8e1ee;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.sync-notifier-toggle {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 8px 10px;
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 0;
    background: #ffffff;
    color: #172033;
    text-align: left;
    cursor: pointer;
}

.sync-notifier-toggle strong {
    font-size: 13px;
    line-height: 1.2;
}

.sync-notifier-toggle small {
    grid-column: 2;
    color: #667085;
    font-size: 12px;
}

.sync-dot {
    width: 9px;
    height: 9px;
    margin-top: 3px;
    border-radius: 999px;
    background: #98a2b3;
}

.sync-notifier.success .sync-dot {
    background: #12b76a;
}

.sync-notifier.failed .sync-dot {
    background: #f04438;
}

.sync-notifier.queued .sync-dot,
.sync-notifier.is-loading .sync-dot {
    background: #f79009;
}

.sync-notifier-body {
    display: grid;
    gap: 8px;
    padding: 0 12px 12px 30px;
}

.sync-notifier-body p {
    margin: 0;
    color: #344054;
    font-size: 13px;
    line-height: 1.45;
}

.sync-notifier-body a {
    color: var(--blue-dark);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.sync-notifier.is-collapsed .sync-notifier-body {
    display: none;
}

.sync-notifier.has-new {
    animation: syncPulse 1.2s ease-in-out 3;
}

@keyframes syncPulse {
    0% {
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
        transform: translateY(0);
    }
    50% {
        box-shadow: 0 18px 46px rgba(234, 91, 34, 0.34);
        transform: translateY(-2px);
    }
    100% {
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
        transform: translateY(0);
    }
}

.login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(234, 91, 34, 0.88), rgba(63, 63, 66, 0.78)),
        url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1600&q=80") center / cover;
}

.login-card {
    width: min(420px, 100%);
    padding: 30px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(15, 39, 71, 0.22);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.login-logo {
    display: block;
    width: 170px;
    height: 52px;
    object-fit: contain;
    object-position: left center;
}

.login-brand strong,
.login-brand small {
    display: block;
}

.login-brand strong {
    font-size: 24px;
}

.login-brand small {
    color: var(--muted);
    margin-top: 3px;
}

.login-form {
    display: grid;
    gap: 15px;
}

.login-form label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

.login-form input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
}

.form-error {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fef3f2;
    color: var(--red);
}

.login-note {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.detail-actions form {
    margin: 0;
}

.edit-page {
    max-width: 980px;
}

.edit-panel,
.document-print {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
}

.edit-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.edit-header h2,
.edit-header p {
    margin: 0;
}

.edit-header p {
    margin-top: 6px;
    color: var(--muted);
}

.edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.edit-grid label,
.modal-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-weight: 700;
}

.edit-grid input,
.edit-grid textarea,
.modal-form input,
.modal-form textarea {
    width: 100%;
    border: 1px solid var(--line-dark);
    border-radius: 6px;
    padding: 10px 12px;
    background: #ffffff;
    color: var(--text);
}

.wide-field {
    grid-column: 1 / -1;
}

.modal-row > td {
    height: 0;
    padding: 0;
    border: 0;
}

.modal-form footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.print-page {
    max-width: 980px;
    margin: 0 auto;
}

.label-sheet {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.print-label {
    min-height: 118px;
    padding: 12px;
    background: #ffffff;
    border: 1px dashed #98a2b3;
    border-radius: 6px;
    display: grid;
    gap: 5px;
}

.print-label strong {
    font-size: 13px;
}

.barcode {
    padding: 7px 8px;
    background: repeating-linear-gradient(90deg, #111827 0 2px, #ffffff 2px 4px, #111827 4px 5px, #ffffff 5px 8px);
    color: transparent;
    border-radius: 3px;
}

.print-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.document-print header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.document-print img {
    width: 140px;
    height: 44px;
    object-fit: contain;
}

.kv-screen {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.kv-filter-panel {
    min-height: calc(100vh - 178px);
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    align-content: start;
    gap: 18px;
}

.kv-filter-panel label,
.kv-filter-panel label span {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.kv-filter-panel label span {
    grid-auto-flow: column;
    justify-content: space-between;
    align-items: center;
}

.kv-filter-panel a {
    color: var(--orange);
    font-weight: 700;
    text-decoration: none;
}

.kv-filter-panel select,
.kv-filter-panel input {
    width: 100%;
    min-height: 34px;
    border: 1px solid var(--line-dark);
    border-radius: 6px;
    padding: 0 10px;
    background: #ffffff;
}

.input-pair {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--line-dark);
    border-radius: 6px;
}

.input-pair + .input-pair {
    margin-top: 8px;
}

.input-pair strong {
    display: grid;
    place-items: center;
    background: #f2f4f7;
    font-size: 13px;
}

.input-pair input {
    border: 0;
    border-radius: 0;
}

.kv-radio-filter label {
    display: flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid var(--line-dark);
    border-radius: 6px;
    padding: 0 10px;
    font-weight: 500;
}

.supplier-status-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kv-data-panel {
    min-width: 0;
}

.kv-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.kv-search {
    width: min(560px, 100%);
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    border: 1px solid var(--line-dark);
    border-radius: 6px;
    background: #ffffff;
    overflow: hidden;
}

.kv-search span {
    color: var(--muted);
    text-align: center;
}

.kv-search input {
    border: 0;
    min-height: 36px;
    padding: 0 8px;
}

.kv-table-wrap {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: auto;
}

.kv-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    font-size: 14px;
}

.kv-table th,
.kv-table td {
    border-bottom: 1px solid var(--line);
    padding: 12px 14px;
    vertical-align: middle;
}

.kv-table th {
    background: #eaf4ff;
    color: #0f172a;
    font-size: 13px;
    text-align: left;
}

.kv-table .money-cell,
.kv-summary td:last-child,
.kv-summary td:nth-last-child(2) {
    text-align: right;
}

.kv-summary {
    background: #fbfdff;
}

.supplier-detail {
    padding: 0 0 8px;
    background: #ffffff;
}

.supplier-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px 10px;
}

.supplier-heading h3,
.supplier-heading p {
    margin: 0;
}

.supplier-heading h3 small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.supplier-heading p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
}

.supplier-status {
    align-self: flex-start;
    padding: 5px 9px;
    border-radius: 6px;
    background: #fee4e2;
    color: #b42318;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
}

.supplier-status.is-active {
    background: #dcfae6;
    color: #067647;
}

.supplier-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
    padding: 12px 18px 18px;
}

.supplier-meta div {
    min-height: 42px;
    border-bottom: 1px solid var(--line);
}

.supplier-meta span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.supplier-meta strong {
    display: block;
    font-weight: 500;
}

.supplier-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
}

.supplier-actions form {
    margin: 0;
}

.supplier-actions button,
.supplier-actions a {
    min-height: 34px;
    border: 1px solid var(--line-dark);
    border-radius: 6px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.supplier-actions .primary-button {
    border-color: var(--orange);
    background: var(--orange);
    color: #ffffff;
}

@media print {
    .app-header,
    .module-nav,
    .page-head,
    .print-actions {
        display: none !important;
    }

    body,
    .shell {
        background: #ffffff;
        padding: 0;
    }

    .print-page {
        max-width: none;
    }
}

@media (max-width: 980px) {
    .crm-app-shell {
        grid-template-columns: 1fr;
    }

    .crm-sidebar {
        position: static;
        height: auto;
    }

    .crm-main {
        padding: 12px;
    }

    .crm-topbar,
    .crm-hero {
        flex-direction: column;
    }

    .crm-workflows,
    .data-hub-summary,
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .app-header,
    .page-head,
    .data-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-tools {
        flex-wrap: wrap;
        gap: 9px;
    }

    .workspace-grid {
        grid-template-columns: 1fr;
    }

    .kv-screen {
        grid-template-columns: 1fr;
    }

    .kv-filter-panel {
        min-height: 0;
    }

    .kv-toolbar {
        flex-direction: column;
    }

    .supplier-heading,
    .supplier-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .supplier-meta {
        grid-template-columns: 1fr;
    }

    .module-filters {
        min-height: 0;
    }

    .module-nav .sale-link {
        margin-left: 0;
    }

    .stats-grid,
    .panel-grid,
    .product-workspace,
    .sync-layout,
    .product-detail,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .toolbar-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .detail-tabs {
        overflow-x: auto;
    }

    .detail-actions {
        grid-template-columns: 1fr 1fr;
    }

    .edit-header,
    .edit-grid,
    .label-sheet {
        grid-template-columns: 1fr;
    }

    .edit-header {
        flex-direction: column;
    }
}

/* CRM/ERP polish layer */
body {
    background: #f5f7fb;
    color: #182033;
    font-family: Arial, Helvetica, sans-serif;
}

.crm-app-shell {
    grid-template-columns: 284px minmax(0, 1fr);
    background: #f5f7fb;
}

.crm-sidebar {
    background: #111a2e;
    border-right: 1px solid #22304a;
}

.crm-main {
    padding: 20px 24px 34px;
}

.crm-topbar,
.product-command article,
.sync-explain,
.filters,
.table-shell,
.panel,
.stat-card {
    border-radius: 8px;
    border-color: #d8e1ee;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.crm-topbar {
    min-height: 92px;
    align-items: center;
    padding: 18px 20px;
}

.crm-topbar h1 {
    font-size: 25px;
    letter-spacing: 0;
}

.primary-button,
.outline-button,
.ghost-button {
    min-height: 34px;
    border-radius: 6px;
}

.product-command {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.product-command article {
    display: grid;
    gap: 7px;
    min-height: 110px;
    padding: 16px;
    background: #ffffff;
}

.product-command span,
.sync-explain strong {
    color: #526179;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-command strong {
    color: #111827;
    font-size: 20px;
    line-height: 1.2;
}

.product-command small,
.sync-explain span {
    color: #667085;
    line-height: 1.45;
}

.sync-health {
    border-left: 4px solid #98a2b3;
}

.sync-health.success {
    border-left-color: #12b76a;
}

.sync-health.failed {
    border-left-color: #f04438;
}

.sync-explain {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px 14px;
    background: #fffaf5;
    border: 1px solid #fed7aa;
}

.professional-workspace {
    grid-template-columns: 216px minmax(0, 1fr);
}

.professional-workspace .filters {
    align-self: start;
    background: #ffffff;
}

.professional-workspace .data-toolbar {
    align-items: center;
    padding: 12px;
    border: 1px solid #d8e1ee;
    border-radius: 8px;
    background: #ffffff;
}

.search-box {
    height: 38px;
    border-radius: 6px;
}

.data-table {
    min-width: 1040px;
}

.data-table th {
    height: 42px;
    background: #f8fafc;
    color: #344054;
    border-bottom: 1px solid #d8e1ee;
}

.data-table td {
    height: 48px;
    border-bottom-color: #e6edf5;
}

.summary-row td {
    background: #fbfdff;
}

.selected-row {
    background: #f2f7ff;
    outline: 0;
    box-shadow: inset 3px 0 0 var(--orange);
}

.product-detail-row td {
    border-color: #d8e1ee;
    border-left: 0;
    border-right: 0;
}

.detail-tabs {
    min-height: 44px;
    background: #fbfdff;
}

.product-detail {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
}

.detail-media {
    width: 112px;
    height: 112px;
    border-radius: 8px;
}

.detail-tags span {
    background: #eef4ff;
    color: #344054;
}

.detail-grid > div {
    padding-bottom: 8px;
}

.supplier-box {
    background: #f8fafc;
}

@media (max-width: 980px) {
    .product-command {
        grid-template-columns: 1fr;
    }

    .sync-explain {
        flex-direction: column;
    }
}

/* FUGALO operating UI - full replacement layer */
body {
    background: #f1f2f7;
    color: #1f2937;
    font-family: Arial, Helvetica, sans-serif;
}

.fugalo-shell {
    min-height: 100vh;
    background: #f1f2f7;
}

.fugalo-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 56px;
    padding: 0 18px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}

.fugalo-app-switcher,
.fugalo-icon,
.fugalo-user {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #667085;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.fugalo-app-switcher:hover,
.fugalo-icon:hover {
    background: #f2f4f7;
    color: #5b3ee4;
}

.fugalo-product {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    text-decoration: none;
}

.fugalo-product img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 8px;
}

.fugalo-product strong {
    font-size: 20px;
}

.fugalo-top-spacer {
    flex: 1;
}

.fugalo-user {
    border-radius: 999px;
    background: linear-gradient(135deg, #6d5dfc, #ef7d45);
    color: #ffffff;
    font-size: 12px;
}

.fugalo-workbench {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    gap: 20px;
    padding: 24px 38px 30px;
}

.fugalo-sidebar {
    align-self: start;
    min-height: calc(100vh - 104px);
    padding: 18px 0;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.fugalo-menu {
    display: grid;
    gap: 6px;
}

.fugalo-menu a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 40px;
    margin: 0 20px;
    padding: 0 12px;
    border-radius: 0;
    color: #667085;
    text-decoration: none;
}

.fugalo-menu a span {
    color: #667085;
    font-size: 18px;
    text-align: center;
}

.fugalo-menu a strong {
    font-size: 14px;
}

.fugalo-menu a:hover,
.fugalo-menu a.is-active {
    background: #f2efff;
    color: #5b3ee4;
    box-shadow: inset 4px 0 0 #6d5dfc;
}

.fugalo-menu a:hover span,
.fugalo-menu a.is-active span {
    color: #6d5dfc;
}

.fugalo-main {
    min-width: 0;
}

.fugalo-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.fugalo-page-head h1 {
    margin: 0;
    color: #111827;
    font-size: 24px;
}

.fugalo-page-head p {
    margin: 6px 0 0;
    color: #667085;
}

.fugalo-page-actions {
    display: flex;
    gap: 8px;
}

.amis-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 42px;
    margin-bottom: 12px;
    padding: 7px 24px;
    border-radius: 4px;
    background: #e7e5ec;
}

.amis-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 16px;
    border-radius: 4px;
    color: #667085;
    font-weight: 700;
    text-decoration: none;
}

.amis-tabs a.is-active,
.amis-tabs a:hover {
    background: #ffffff;
    color: #5b3ee4;
}

.amis-kpi-grid,
.product-command {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.amis-kpi-grid article,
.product-command article,
.amis-card,
.amis-module-card {
    border: 0;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.amis-kpi-grid article,
.product-command article {
    display: grid;
    gap: 7px;
    min-height: 104px;
    padding: 16px 18px;
}

.amis-kpi-grid span,
.product-command span {
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

.amis-kpi-grid strong,
.product-command strong {
    color: #111827;
    font-size: 24px;
}

.amis-kpi-grid small,
.product-command small {
    color: #98a2b3;
    line-height: 1.45;
}

.amis-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.amis-card {
    min-height: 330px;
    padding: 18px;
}

.amis-card header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.amis-card h2 {
    max-width: 360px;
    margin: 0;
    color: #111827;
    font-size: 17px;
    line-height: 1.35;
}

.card-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #667085;
}

.card-tools button {
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
    color: #667085;
    cursor: pointer;
}

.donut-wrap {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
}

.donut-chart {
    display: grid;
    place-items: center;
    width: 190px;
    height: 190px;
    border-radius: 999px;
    background: conic-gradient(#1abc75 0 36%, #2f98ed 36% 61%, #7357e8 61% 78%, #f59e0b 78% 100%);
}

.donut-chart > div {
    display: grid;
    place-items: center;
    width: 108px;
    height: 108px;
    border-radius: 999px;
    background: #ffffff;
}

.donut-chart strong {
    font-size: 24px;
}

.donut-chart span {
    color: #667085;
}

.donut-legend,
.amis-activity,
.amis-shortcuts {
    display: grid;
    gap: 12px;
}

.donut-legend span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #344054;
}

.donut-legend i {
    width: 9px;
    height: 9px;
    border-radius: 999px;
}

.donut-legend .green { background: #1abc75; }
.donut-legend .blue { background: #2f98ed; }
.donut-legend .purple { background: #7357e8; }
.donut-legend .orange { background: #f59e0b; }

.amis-bars {
    display: flex;
    align-items: end;
    gap: 12px;
    min-height: 230px;
    padding: 16px 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.amis-bars div {
    display: grid;
    align-items: end;
    justify-items: center;
    gap: 8px;
    width: 42px;
    height: 210px;
}

.amis-bars span {
    width: 100%;
    min-height: 10px;
    border-radius: 3px 3px 0 0;
    background: #2f98ed;
}

.amis-bars small {
    color: #667085;
}

.amis-activity div {
    display: grid;
    grid-template-columns: 10px minmax(110px, auto) minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 38px;
    border-bottom: 1px solid #eef2f6;
}

.amis-activity i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #98a2b3;
}

.amis-activity i.success { background: #1abc75; }
.amis-activity i.failed { background: #ef3f6b; }

.amis-activity span,
.amis-activity small {
    color: #667085;
}

.amis-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.amis-shortcuts a {
    display: grid;
    gap: 6px;
    min-height: 86px;
    padding: 14px;
    border: 1px solid #eef2f6;
    border-radius: 5px;
    color: #111827;
    text-decoration: none;
}

.amis-shortcuts a:hover {
    border-color: #c7befb;
    background: #fbfaff;
}

.amis-shortcuts span {
    color: #667085;
    line-height: 1.45;
}

.amis-module-card {
    padding: 0;
    overflow: hidden;
}

.amis-toolbar {
    margin: 0;
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid #eef2f6;
    border-radius: 0;
    box-shadow: none;
}

.amis-search {
    height: 36px;
    border-radius: 4px;
}

.amis-table-shell {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.amis-data-table th {
    height: 44px;
    background: #f7f8fb;
    color: #475467;
}

.amis-data-table td {
    height: 52px;
    color: #111827;
}

.amis-data-table tbody tr:hover {
    background: #fbfaff;
}

.amis-time {
    display: block;
    color: #344054;
}

.row-action {
    display: inline-flex;
    margin-top: 3px;
    color: #5b3ee4;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.lola-type {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #eef2f6;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
}

.lola-type.co {
    background: #fff7ed;
    color: #c2410c;
}

.lola-type.kc {
    background: #eef4ff;
    color: #3538cd;
}

.lola-sync-command {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.amis-footer {
    padding: 12px 16px;
    border-top: 1px solid #eef2f6;
}

.amis-note {
    border-color: #e9d7fe;
    background: #fbfaff;
}

.sync-notifier {
    left: 18px;
    bottom: 18px;
}

@media (max-width: 1100px) {
    .fugalo-workbench,
    .amis-dashboard-grid,
    .amis-kpi-grid,
    .product-command {
        grid-template-columns: 1fr;
    }

    .fugalo-workbench {
        padding: 14px;
    }

    .fugalo-sidebar {
        min-height: 0;
    }

    .donut-wrap,
    .amis-shortcuts {
        grid-template-columns: 1fr;
    }
}
