/* Shared visual layer. Business logic and record permissions remain in modules. */
@layer srs-reference {
html body.erp-body.srs-v5{background:#f7f8fa!important;color:#374151!important;font-size:15px!important}
html body.erp-body.srs-v5 .workdesk-top{background:var(--srs-primary)!important;color:var(--srs-primary-text)!important;border:0!important;min-height:60px!important;box-shadow:none!important}
html body.erp-body.srs-v5 .workdesk-company strong,html body.erp-body.srs-v5 .workdesk-company small,html body.erp-body.srs-v5 .workdesk-top>strong{color:var(--srs-primary-text)!important}
html body.erp-body.srs-v5 .workdesk-company:before{display:none!important}
html body.erp-body.srs-v5 .workdesk-top .secondary-button{background:white!important;color:#41515b!important;border:1px solid #e1e6eb!important;padding:8px 13px!important;border-radius:6px!important}
html body.erp-body.srs-v5 .trade-topnav{background:#fff!important;border-bottom:1px solid #e1e5ea!important;min-height:68px!important}
html body.erp-body.srs-v5 .trade-topnav :is(summary,.trade-home){font-size:12px!important;font-weight:400!important;flex-direction:column!important;justify-content:center!important;gap:5px!important;padding:9px 13px!important;border-left:1px solid #f0f1f3!important;color:#697681!important}
html body.erp-body.srs-v5 .trade-topnav .current>summary,html body.erp-body.srs-v5 .trade-topnav .trade-home.current{color:var(--srs-primary)!important;background:#fff!important;border-bottom-color:var(--srs-primary)!important}
html body.erp-body.srs-v5 .trade-nav-icon{width:24px!important;height:24px!important;display:block!important;color:#8a9c9b!important}
html body.erp-body.srs-v5 .workdesk-content{max-width:1500px!important;padding:25px 4vw!important}
html body.erp-body.srs-v5 .workdesk-title h1{font-size:25px!important;font-weight:500!important;color:#374151!important}
html body.erp-body.srs-v5 .mc-company-banner{display:none!important}
html body.erp-body.srs-v5 table th{background:white!important;font-size:14px!important;color:#4b5563!important;font-weight:500!important;letter-spacing:0!important;text-transform:none!important;border-bottom:1px solid #dfe4e9!important}
html body.erp-body.srs-v5 table td{font-size:14px!important;font-weight:400!important;line-height:1.5!important}
html body.erp-body.srs-v5 table td :is(strong,b){font-weight:400!important}
html body.erp-body.srs-v5 .panel{border-radius:11px!important;border:1px solid #edf0f2!important;background:white!important;box-shadow:0 3px 15px #20344c05!important}
html body.erp-body.srs-v5 .panel h3{font-weight:500!important;color:#374151!important}
html body.erp-body.srs-v5 .primary-button{background:var(--srs-primary)!important;color:var(--srs-primary-text)!important;border-color:var(--srs-primary)!important;border-radius:7px!important}
html body.erp-body.srs-v5 .secondary-button,html body.erp-body.srs-v5 .record-action{border-radius:7px!important}
html body.erp-body.srs-v5 .record-action-menu{border-radius:9px!important}
html body.erp-body.srs-v5 .record-action:hover{background:var(--srs-soft)!important}
html body.erp-body.srs-v5 .inventory-stock-list>.section-grid{display:block!important}
html body.erp-body.srs-v5 .inventory-stock-list td:first-child small{font-size:12px!important;color:#8c959f!important;display:block!important}
html body.erp-body.srs-v5 .clean-ledger th{background:#fff!important}
html body.erp-body.srs-v5 .billing-paper-form,html body.erp-body.srs-v5 .purchase-entry-card{background:white!important;border-radius:10px!important}
@media(max-width:700px){html body.erp-body.srs-v5 .workdesk-content{padding:17px 12px!important}html body.erp-body.srs-v5 .trade-topnav :is(summary,.trade-home){padding:8px 10px!important;font-size:11px!important}html body.erp-body.srs-v5 .workdesk-title h1{font-size:22px!important}}
@media print{html body.erp-body.srs-v5 .workdesk-top,html body.erp-body.srs-v5 .trade-nav-wrap{display:none!important}html body.erp-body.srs-v5 .workdesk-content{padding:0!important}}
}

@font-face {
  font-family: "SRS Open Sans"; font-style: normal; font-weight: 400;
  src: url("/erp/assets/fonts/srs-open-sans-400.woff") format("woff"); font-display: swap;
}
@font-face {
  font-family: "SRS Open Sans"; font-style: normal; font-weight: 600;
  src: url("/erp/assets/fonts/srs-open-sans-600.woff") format("woff"); font-display: swap;
}

@layer srs-reference {
  html body.erp-body.srs-v5 {
    --srs-workspace-gutter: clamp(16px, 5.9vw, 144px);
    --srs-workspace-width: calc(100% - 2 * var(--srs-workspace-gutter));
    --srs-ui-font: "SRS Open Sans", Arial, sans-serif;
    background: var(--srs-surface,#f7f7f8)!important;
    color: #292e34!important;
    font: 400 14px/1.5 var(--srs-ui-font)!important;
  }
  html body.erp-body.srs-v5 :is(h1,h2,h3,h4,h5,h6,input,button,select,textarea,summary,.record-action) {
    font-family: var(--srs-ui-font)!important;
  }
  html body.erp-body.srs-v5 .workdesk-top.srs-business-header {
    min-height: 54px!important; padding: 0!important; position: relative!important;
  }
  .srs-header-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    width: var(--srs-workspace-width); margin: auto; min-height: 54px;
  }
  .srs-company-title {
    color: var(--srs-primary-text); text-decoration: none; font-size: 19px;
    font-weight: 600; line-height: 1.25;
  }
  .srs-header-actions { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
  .srs-header-menu { position: relative; border: 0; margin: 0; padding: 0; }
  .srs-header-menu > summary {
    display: flex; gap: 11px; align-items: center; justify-content: center;
    background: #fff; color: #32363b; padding: 7px 12px; border-radius: 8px;
    list-style: none; cursor: pointer; min-height: 35px; font-size: 12px; font-weight: 600;
  }
  .srs-header-menu > summary::-webkit-details-marker { display: none; }
  .srs-header-menu > .srs-create-button { min-width: 126px; justify-content: space-between; }
  .srs-header-menu-items {
    position: absolute; right: 0; top: calc(100% + 7px); z-index: 150;
    width: max-content; min-width: 176px; max-width: calc(100vw - 30px);
    background: white; color: #292e34; border: 1px solid #e6e7ea; border-radius: 8px;
    padding: 6px; box-shadow: 0 7px 20px #18232924;
  }
  .srs-header-menu-items :is(a,small) { display: block; padding: 8px 10px; color: #292e34; text-decoration: none; }
  .srs-header-menu-items a:hover { background: var(--srs-soft); }
  .srs-header-menu-items small { font-size: 11px; color: #65717b; }
  .srs-header-menu-items form { padding: 6px; display: grid; gap: 8px; }
  .srs-header-menu-items label { display: grid; gap: 5px; }
  html body.erp-body.srs-v5 .srs-header-icon {
    width: 29px!important; min-width: 29px!important; height: 29px!important; padding: 4px!important;
    display: grid!important; place-items: center; border: 0!important; background: transparent!important;
    color: var(--srs-primary-text)!important; border-radius: 50%!important; cursor: pointer;
  }
  .srs-header-icon svg,.srs-profile-menu svg { width: 21px; height: 21px; }
  .srs-profile-menu > summary { width: 34px; height: 34px; min-height: 34px; padding: 4px; border-radius: 50%; }
  html body.erp-body.srs-v5 .trade-nav-wrap { background: #fff!important; border-bottom: 1px solid #ddd!important; }
  html body.erp-body.srs-v5 .trade-topnav {
    width: var(--srs-workspace-width)!important; margin: 0 auto!important;
    padding: 0!important; min-height: 68px!important; border-bottom: 0!important;
    align-items: stretch!important; justify-content: flex-start!important;
  }
  html body.erp-body.srs-v5 .trade-topnav > :is(.trade-menu,.trade-home) { flex: 1 0 84px!important; }
  html body.erp-body.srs-v5 .trade-topnav :is(.trade-menu > summary,.trade-home) {
    min-height: 68px!important; height: 100%!important; min-width: 0!important;
    font: 400 12px/1.15 var(--srs-ui-font)!important; padding: 7px 5px!important; gap: 4px!important;
    text-align: center; white-space: normal!important; color: #60666a!important; border-left: 1px solid #e8e8e8!important;
    border-bottom: 2px solid transparent!important;
  }
  html body.erp-body.srs-v5 .trade-topnav > :last-child { border-right: 1px solid #e8e8e8!important; }
  html body.erp-body.srs-v5 .trade-topnav .trade-menu-label { max-width: 100%; }
  html body.erp-body.srs-v5 .trade-topnav .current>summary,
  html body.erp-body.srs-v5 .trade-topnav .trade-home.current {
    color: #222!important; font-weight: 600!important; border-bottom-color: #ef796f!important;
  }
  html body.erp-body.srs-v5 .trade-nav-icon { width: 21px!important; height: 21px!important; color: #779a92!important; }
  html body.erp-body.srs-v5 .trade-topnav .current .trade-nav-icon { color: #234039!important; }
  html body.erp-body.srs-v5 .workdesk-content {
    box-sizing: border-box; width: var(--srs-workspace-width)!important;
    max-width: none!important; padding: 23px 0 32px!important; margin: 0 auto!important;
  }
  html body.erp-body.srs-v5 .workdesk-title { margin: 0!important; padding: 0 0 14px!important; }
  html body.erp-body.srs-v5 .workdesk-title h1 { font-size: 20px!important; color: #333!important; font-weight: 600!important; }
  html body.erp-body.srs-v5 .workdesk-title p:not(.overline) { color: #69717a!important; margin: 4px 0 0!important; }
  html body.erp-body.srs-v5[data-erp-page="dashboard"] .workdesk-title {
    position: absolute!important; width: 1px!important; height: 1px!important; overflow: hidden!important;
    clip-path: inset(50%); padding: 0!important;
  }
  html body.erp-body.srs-v5[data-erp-page="dashboard"] .workdesk-content { padding-top: 31px!important; }
  html body.erp-body.srs-v5 :is(.panel,.payment-register,.clean-ledger) { border-radius: 8px!important; box-shadow: 0 2px 12px #14191d08!important; }
  html body.erp-body.srs-v5 :is(.payment-register,.clean-ledger,.inventory-stock-list) th {
    font-size: 14px!important; font-weight: 600!important; color: #30343b!important; border-bottom: 1px solid #d6d7da!important;
  }
  html body.erp-body.srs-v5 :is(.payment-register,.clean-ledger,.inventory-stock-list) td {
    font-size: 14px!important; color: #30343b!important; padding: 13px 10px!important; border-bottom: 1px solid #e8e8e8!important;
  }
  html body.erp-body.srs-v5 :is(.payment-register,.clean-ledger,.inventory-stock-list) tbody tr:nth-child(even) { background: #f6f6f6!important; }
  html body.erp-body.srs-v5 .payment-register :is(.secondary-button,.record-action),
  html body.erp-body.srs-v5 .record-row-actions .record-action { background: #f5f5f5!important; color: #30343b!important; border-color: #e7e7e7!important; }
  html body.erp-body.srs-v5 .srs-side-panel { font-family: var(--srs-ui-font)!important; }
  @media (max-width: 850px) {
    html body.erp-body.srs-v5 { --srs-workspace-gutter: 16px; }
    .srs-header-actions { gap: 7px; }
    .srs-company-title { font-size: 15px; }
    html body.erp-body.srs-v5 .trade-topnav { width: calc(100% - 55px)!important; }
  }
  @media (max-width: 550px) {
    .srs-header-inner { gap: 8px; }
    .srs-company-title { font-size: 13px; overflow-wrap: anywhere; }
    .srs-header-menu > .srs-create-button { min-width: 0; padding-inline: 8px; gap: 4px; }
    .srs-company-menu > summary { padding-inline: 7px; }
    html body.erp-body.srs-v5 .srs-header-alerts { display: none!important; }
    html body.erp-body.srs-v5 { --srs-workspace-gutter: 12px; }
  }
}
@layer srs-reference {
  html body.erp-body.srs-v5[data-erp-page="finance"]:is([data-erp-view="inward"],[data-erp-view="outward"]):not([data-erp-mode="new"]) .workdesk-title {
    position: absolute!important; width: 1px!important; height: 1px!important; overflow: hidden!important;
    clip-path: inset(50%); padding: 0!important;
  }
  html body.erp-body.srs-v5 .payment-register { padding: 16px!important; overflow: visible!important; }
  .payment-register .payment-list-toolbar { gap: 12px; margin: 0 0 14px; }
  .payment-list-toolbar h2 { font-size: 17px; font-weight: 600; margin: 0; }
  .payment-list-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
  .payment-list-actions > .primary-button, .payment-list-actions summary {
    min-height: 35px!important; padding: 6px 11px!important; font-size: 13px!important; text-transform: none!important;
  }
  .payment-search { position: relative; border: 0; margin: 0; padding: 0; }
  .payment-search summary { list-style: none; cursor: pointer; }
  .payment-search summary::-webkit-details-marker { display: none; }
  .payment-search > :is(form,p) {
    position: absolute; z-index: 4; top: calc(100% + 7px); right: 0;
    width: 220px; display: grid; gap: 8px; background: white; margin: 0;
    border: 1px solid #e6e6e6; border-radius: 8px; padding: 12px; box-shadow: 0 5px 20px #0002;
  }
  .payment-search input, .payment-search select { width: 100%; min-width: 0; }
  .payment-type-label { background: var(--srs-soft); border-radius: 7px; padding: 5px 9px; white-space: nowrap; }
  .payment-active-filter { font-size: 12px; margin: 0 0 12px; }
  .payment-active-filter a { margin-left: 6px; }
  @media (max-width:550px) {
    .payment-search > :is(form,p) { left: 0; right: auto; max-width: calc(100vw - 60px); }
  }
}
@layer srs-reference {
  html body.erp-body.srs-v5 :is(.srs-company-title,.srs-header-actions,.analytics-workspace,.analytics-switch) { font-family:var(--srs-ui-font)!important; }
  html body.erp-body.srs-v5 .trade-nav-wrap {
    position:relative!important; display:block!important; padding:0!important;
  }
  html body.erp-body.srs-v5 .trade-topnav {
    max-width:var(--srs-workspace-width)!important;
  }
  html body.erp-body.srs-v5 .trade-nav-wrap .trade-nav-scroll {
    position:absolute!important; top:0!important; height:68px!important; z-index:36!important;
  }
  html body.erp-body.srs-v5 .trade-nav-wrap [data-nav-scroll="-1"] { left:0!important; }
  html body.erp-body.srs-v5 .trade-nav-wrap [data-nav-scroll="1"] { right:0!important; }
  html body.erp-body.srs-v5 .trade-nav-scroll:disabled { visibility:hidden!important; }
  html body.erp-body.srs-v5[data-erp-page="dashboard"] .workdesk-content {
    padding:clamp(24px, 2.1vw, 32px) 0 30px!important;
  }
  html body.erp-body.srs-v5 .analytics-workspace h3 {
    margin:0 0 17px!important; font-size:14px!important; line-height:1.4!important; font-weight:600!important;
  }
  html body.erp-body.srs-v5 .analytics-workspace .analytics-outstanding h3 { margin-bottom:22px!important; }
  html body.erp-body.srs-v5 .analytics-workspace {
    width:100%!important; max-width:none!important; margin:0!important; padding:0!important;
  }
  html body.erp-body.srs-v5 .analytics-range .analytics-refresh {
    min-height:34px!important; height:34px!important; padding:4px 12px!important;
    box-shadow:none!important;
  }
  html body.erp-body.srs-v5 .analytics-outstanding .analytics-age-values small { color:#656b70!important; }
  @media (max-width:620px) {
    html body.erp-body.srs-v5[data-erp-page="dashboard"] .workdesk-content { padding-top:22px!important; }
  }
  @media print {
    html body.erp-body.srs-v5 .trade-nav-wrap { display:none!important; }
  }
}


@layer srs-reference {
  html body.erp-body.srs-v5 :is(.trade-dashboard,.clean-ledger,.payment-register,
      .paper-purchase,.purchase-voucher,.purchase-register,.sales-workspace,.sales-entry-card,
      #salesVoucherForm,#srsInvoiceEditForm) {
    box-sizing:border-box;
    width:100%!important;
    max-width:none!important;
    min-width:0;
  }
  html body.erp-body.srs-v5 .erp-content { width:100%!important; max-width:none!important; min-width:0; }
  html body.erp-body.srs-v5 .workdesk-content .table-wrap {
    max-width:100%;
    overflow-x:auto;
  }
  html body.erp-body.srs-v5 .analytics-top { margin-inline:0!important; }
  html body.erp-body.srs-v5 .analytics-switch { margin-top:0!important; }
  html body.erp-body.srs-v5 .srs-side-panel :is(input,select,textarea,button,a,td,th) {
    font-family:var(--srs-ui-font)!important;
  }
  html body.erp-body.srs-v5 :is(.paper-purchase,.sales-entry-card,.purchase-voucher) th {
    border-color:#e1e5e9!important;
  }
  html body.erp-body.srs-v5 :is(.paper-purchase,.sales-entry-card,.purchase-voucher) td {
    border-color:#e9ebee!important;
  }
  @media print {
    html body.erp-body.srs-v5 .workdesk-content { width:100%!important; }
  }
}
@layer srs-reference {
  html body.erp-body.srs-v5 :is(.sales-entry-panel,.purchase-voucher) {
    width:100%!important;
    max-width:none!important;
    box-sizing:border-box;
    background:#fff!important;
    border:1px solid #e1e5e9!important;
    border-radius:8px!important;
  }
  html body.erp-body.srs-v5 .sales-entry-panel :is(.srs486-voucher-titlebar,.sales-top-grid,.sales-card-body) {
    background:#fff!important;
    border-color:#e1e5e9!important;
  }
  html body.erp-body.srs-v5 .sales-entry-panel .srs486-title-main {
    background:var(--srs-primary)!important;
    border-radius:7px 0 0 0;
  }
  html body.erp-body.srs-v5 .sales-entry-panel :is(.sales-top-grid > .sales-card,.srs486-voucher-titlebar > div) {
    border-color:#e1e5e9!important;
  }
  html body.erp-body.srs-v5 :is(.sales-entry-panel,.purchase-voucher) :is(.sales-table-wrap,.voucher-table-wrap) {
    max-width:100%;
    overflow-x:auto;
  }
}
