﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
    color: #172e67;
}

.btn-primary {
    color: #fff;
    background-color: #172e67;
    border-color: #172e67;
}

.text-primary {
    color: #172e67 !important;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #172e67;
    border-color: #1861ac;
}

.bg-primary {
    background-color: #172e67 !important;
}
/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
}

.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}



.navbar-light .navbar-nav .nav-link {
    color: #172e67;
}

    .navbar-light .navbar-nav .nav-link:focus, .navbar-light .navbar-nav .nav-link:hover {
        color: #e5e5e5;
        background-color: #172e67;
    }

.dropdown-item {
    color: #172e67;
}

    .dropdown-item:focus dropdown-item:hover {
        color: #e5e5e5;
        background-color: #172e67;
    }

.dropdown-menu > a:hover, .dropdown-menu > a:focus {
    color: #e5e5e5;
    background-color: #172e67;
}


#grad1 {
}

#msform {
    text-align: center;
    position: relative;
    margin-top: 10px
}

    #msform fieldset .form-card {
        background: white;
        border: 0 none;
        border-radius: 0px;
        box-shadow: 0 2px 2px 2px rgba(0, 0, 0, 0.2);
        padding: 20px 40px 30px 40px;
        box-sizing: border-box;
        width: 94%;
        margin: 0 3% 20px 3%;
        position: relative
    }

    #msform fieldset {
        background: white;
        border: 0 none;
        border-radius: 0.5rem;
        box-sizing: border-box;
        width: 100%;
        margin: 0;
        padding-bottom: 20px;
        position: relative
    }

        #msform fieldset:not(:first-of-type) {
            display: none
        }

        #msform fieldset .form-card {
            text-align: left;
            color: #9E9E9E
        }

/*#msform input,
    #msform textarea {
        padding: 0px 8px 4px 8px;
        border: none;
        border-bottom: 1px solid #ccc;
        border-radius: 0px;
        margin-bottom: 25px;
        margin-top: 2px;
        width: 100%;
        box-sizing: border-box;
        font-family: montserrat;
        color: #2C3E50;
        font-size: 16px;
        letter-spacing: 1px
    }

        #msform input:focus,
        #msform textarea:focus {
            -moz-box-shadow: none !important;
            -webkit-box-shadow: none !important;
            box-shadow: none !important;
            border: none;
            font-weight: bold;
            border-bottom: 2px solid skyblue;
            outline-width: 0
        }

    #msform .action-button {
        width: 100px;
        background: skyblue;
        font-weight: bold;
        color: white;
        border: 0 none;
        border-radius: 0px;
        cursor: pointer;
        padding: 10px 5px;
        margin: 10px 5px
    }

        #msform .action-button:hover,
        #msform .action-button:focus {
            box-shadow: 0 0 0 2px white, 0 0 0 3px skyblue
        }

    #msform .action-button-previous {
        width: 100px;
        background: #616161;
        font-weight: bold;
        color: white;
        border: 0 none;
        border-radius: 0px;
        cursor: pointer;
        padding: 10px 5px;
        margin: 10px 5px
    }

        #msform .action-button-previous:hover,
        #msform .action-button-previous:focus {
            box-shadow: 0 0 0 2px white, 0 0 0 3px #616161
        }
*/
select.list-dt {
    border: none;
    outline: 0;
    border-bottom: 1px solid #ccc;
    padding: 2px 5px 3px 5px;
    margin: 2px
}

    select.list-dt:focus {
        border-bottom: 2px solid skyblue
    }

.card {
    z-index: 0;
    border: none;
    border-radius: 0.5rem;
    position: relative
}

.fs-title {
    font-size: 25px;
    color: #2C3E50;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: left
}

#progressbar {
    margin-bottom: 15px;
    overflow: hidden;
    color: lightgrey;
    padding-left: 1px;
}

    #progressbar .active {
        color: #43a756
    }

    #progressbar li {
        list-style-type: none;
        font-size: 12px;
        width: 7%;
        float: left;
        position: relative
    }

    #progressbar #menu-chair:before {
        font-family: FontAwesome;
        content: "\f193"
    }

    #progressbar #menu-adaption:before {
        font-family: FontAwesome;
        content: "\f0ad"
    }

    #progressbar #menu-width:before {
        font-family: FontAwesome;
        content: "\f362"
    }

    #progressbar #menu-back:before {
        font-family: FontAwesome;
        content: "\f6ec"
    }

    #progressbar #menu-depth:before {
        font-family: FontAwesome;
        content: "\f5c4"
    }

    #progressbar #menu-height:before {
        font-family: FontAwesome;
        content: "\f545"
    }

    #progressbar #menu-castor:before {
        font-family: FontAwesome;
        content: "\f013"
    }

    #progressbar #menu-arm:before {
        font-family: FontAwesome;
        content: "\f424"
    }

    #progressbar #menu-legrest:before {
        font-family: FontAwesome;
        content: "\f26e"
    }

    #progressbar #menu-footplate:before {
        font-family: FontAwesome;
        content: "\f124"
    }

    #progressbar #menu-fabric:before {
        font-family: FontAwesome;
        content: "\f3db"
    }

    #progressbar #menu-accessories:before {
        font-family: FontAwesome;
        content: "\f007"
    }

    /*#progressbar #account:before {
        font-family: FontAwesome;
        content: "\f023"
    }*/

    #progressbar #menu-cushion:before {
        font-family: FontAwesome;
        content: "\f007"
    }

    /*#progressbar #payment:before {
        font-family: FontAwesome;
        content: "\f09d"
    }*/

    /*#progressbar #confirm:before {
        font-family: FontAwesome;
        content: "\f00c"
    }*/

    #progressbar li:before {
        width: 50px;
        height: 50px;
        line-height: 45px;
        display: block;
        font-size: 18px;
        color: #ffffff;
        background: lightgray;
        border-radius: 50%;
        margin: 0 auto 10px auto;
        padding: 2px
    }

    #progressbar li:after {
        content: '';
        width: 100%;
        height: 2px;
        background: lightgray;
        position: absolute;
        left: 0;
        top: 25px;
        z-index: -1
    }

    #progressbar li.active:before,
    #progressbar li.active:after {
        background: #43a756
    }

.radio-group {
    position: relative;
    margin-bottom: 25px
}

.radio {
    display: inline-block;
    width: 204;
    height: 104;
    border-radius: 0;
    background: lightblue;
    box-shadow: 0 2px 2px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    cursor: pointer;
    margin: 8px 2px
}

    .radio:hover {
        box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.3)
    }

    .radio.selected {
        box-shadow: 1px 1px 2px 2px rgba(0, 0, 0, 0.1)
    }

.fit-image {
    width: 100%;
    object-fit: cover
}

.fit-image-notification {
    max-width: 90%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 20px;
}

.fit-video-notification {
    max-width: 90%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.fit-video-chair {
    width: 50%;
    height: 200px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.chairImage-video {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 140px;
    height: 200px;
}
.custom-radio-button-label {
    margin-bottom: 0;
    margin-right: 0.5rem;
}

.pricing .card {
    border: none;
    border-radius: 1rem;
    transition: all 0.2s;
    box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.1);
    border-color: #9E9E9E;
}

.pricing hr {
    margin: 1.5rem 0;
}

.pricing .card-title {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    letter-spacing: .1rem;
    font-weight: bold;
}

.pricing .card-price {
    font-size: 3rem;
    margin: 0;
}

    .pricing .card-price .period {
        font-size: 0.8rem;
    }

.pricing ul li {
    margin-bottom: 1rem;
}

.pricing .text-muted {
    opacity: 0.7;
}

.pricing .btn {
    font-size: 80%;
    border-radius: 5rem;
    letter-spacing: .1rem;
    font-weight: bold;
    padding: 1rem;
    opacity: 0.7;
    transition: all 0.2s;
}

/* Hover Effects on Card */

@media (min-width: 992px) {
    .pricing .card:hover {
        margin-top: -.25rem;
        margin-bottom: .25rem;
        box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.3);
    }

        .pricing .card:hover .btn {
            opacity: 1;
        }
}

.chairImage {
    width: 140px;
    height: 200px;
    margin-left: 70px;
}

.greenborder {
    border: 2px solid #172e67;
}

label.required:after {
    color: red;
    font-size: x-large;
    content: " *";
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

    /* Hide default HTML checkbox */
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }


[class^='select2'] {
    border-radius: 0px !important;
    padding: 0 !important;
    border: 0px !important;
}

.tableFixHead {
    overflow: auto;
    height: 800px;
}

    .tableFixHead thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        background: #eee;
    }

.download-category-subtitle {
    font-weight: bold;
    text-align: left;
    font-size: 1.2rem;
    width: 100%;
    background-color: #fff;
    border-color: #fff;
    padding: 0.7rem;
}

    .download-category-subtitle:hover {
        background-color: #add8e6;
        border-color: #add8e6
    }

.download-category-subtitle-selected {
    background-color: #d6d6d6;
    border-color: #d6d6d6;
}

.table-download {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
}

    .table-download td {
        padding: 0.6rem;
    }

    .table-download tr {
        vertical-align: bottom;
        border-bottom: 1px solid #dee2e6;
    }
    
    .table-download tr:last-child {
        border-bottom: 2px;
    }
    
    .table-download tr:hover {
        background-color: #f6f6f6;
    }

.table-options {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
}

    .table-options th,
    .table-options td {
        padding: 0.75rem;
        vertical-align: top;
        border-top: 1px solid #dee2e6;
    }

    .table-options thead th {
        vertical-align: bottom;
        border-bottom: 2px solid #dee2e6;
    }

    .table-options tbody + tbody {
        border-top: 2px solid #dee2e6;
    }

    .table-options tr {
        background-color: #fff;
    }

.tableFixHead-options {
    overflow: auto;
    max-height: 300px;
}

    .tableFixHead-options thead th {
        position: relative;
        top: 0;
        z-index: 1;
        background: #eee;
    }
	
.product-thumbnail {
    width: 60px;
    height: 60px;
    transition: transform .2s;
}

    .product-thumbnail :hover {
        transform: scale(2);
        position: relative;
        z-index: 1;
    }
	
	.badge-primary {
    color: #fff;
    background-color: #172e67;
    border-color: #172e67;
}

.table-header,
.table-header > th,
.table-header > td {
    background-color: #172e67;
    color: #fff;
}

    .table-header th,
    .table-header td,
    .table-header thead th,
    .table-header tbody + tbody {
        border-color: #1458a7;
    }

.table-hover .table-header:hover {
    background-color: #1a4083;
}

    .table-hover .table-header:hover > td,
    .table-hover .table-header:hover > th {
        background-color: #1a4083;
    }
	
.no-sale-link {
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
}

    .no-sale-link:hover, .no-sale-link:focus {
        color: #0056b3;
    }

    .no-sale-link i {
        margin-right: 5px;
    }
    
.badge-primary {
    color: #fff;
    background-color: #172e67;
    border-color: #172e67;
}

.boolean-true::before {
    content: '✔';
    color: greenyellow;
    display: block;
    text-align: center;
}

.boolean-false::before {
    content: '✘';
    color: red;
    display: block;
    text-align: center;
}


.manager-commission-total {
    background-color: transparent !important;
    border: none !important;
    border-collapse: collapse;
}

#button-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.button-row {
    display: flex;
    gap: 10px;
}

.button {
    flex: 1;
    min-width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.single-button {
    display: flex;
    justify-content: flex-start;
}

    .single-button .button {
        min-width: unset;
        width: 100%;
    }

.card-text {
    margin-top: 0;
    margin-bottom: 1rem; 
    color: #212529; 
    font-size: 1rem; 
    line-height: 1.5; 
}

.bg-orange {
    --bs-bg-opacity: 1;
    background-color: #fd7e14 !important;
}

.tab-card {
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .tab-card:hover {
        transform: scale(1.02);
    }

    .tab-card.active {
        box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.4);
    }

#agedDebtorsTable thead th {
    position: sticky;
    top: 0;
    color: white;
    z-index: 10;
}

#agedDebtorsTable thead th {
    position: sticky;
    top: 0;
    background-color: #172e67;
    color: white;
    z-index: 10;
}

.table-responsive {
    max-height: 70vh;
    overflow-y: auto;
}

#agedDebtorsTable tfoot {
    position: sticky;
    bottom: 0;
    background-color: #d1ecf1;
    z-index: 10;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

    #agedDebtorsTable tfoot th {
        border-top: 2px solid #bee5eb;
        background-color: #d1ecf1;
    }
	
.filter-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.dashboard-card {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .dashboard-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

.stat-card {
    border-left: 8px solid;
    padding: 20px;
    background: white;
    height: 100%;
}

.stat-label {
    font-size: 2rem;
    color: #5a6268;

    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0;
}

/* Flip Card Styles */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 200px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
}

.flip-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dc3545;
}

.flip-card-header h6 {
    font-weight: bold;
    color: #dc3545;
}

.accounts-list {
    max-height: 130px;
    overflow-y: auto;
    text-align: left;
}

.accounts-list::-webkit-scrollbar {
    width: 6px;
}

.accounts-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.accounts-list::-webkit-scrollbar-thumb {
    background: #dc3545;
    border-radius: 10px;
}

.accounts-list::-webkit-scrollbar-thumb:hover {
    background: #c82333;
}

.account-item {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
    transition: background-color 0.2s;
}

.account-item:last-child {
    border-bottom: none;
}

.account-item strong {
    color: #343a40;
    display: block;
    margin-bottom: 2px;
}

.account-item small {
    color: #6c757d;
}

.clickable-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.clickable-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.flip-back-btn {
    padding: 0;
    margin: 0;
    color: #dc3545 !important;
    font-size: 1.2rem;
}

.flip-back-btn:hover {
    color: #c82333 !important;
}

.flip-back-btn-orders {
    padding: 0;
    margin: 0;
    color: #fd7e14 !important;
    font-size: 1.2rem;
}

.flip-back-btn-orders:hover {
    color: #e66a00 !important;
}

.orders-list {
    max-height: 130px;
    overflow-y: auto;
    text-align: left;
}

.orders-list::-webkit-scrollbar {
    width: 6px;
}

.orders-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.orders-list::-webkit-scrollbar-thumb {
    background: #fd7e14;
    border-radius: 10px;
}

.orders-list::-webkit-scrollbar-thumb:hover {
    background: #e66a00;
}

.pending-orders-list {
    max-height: 130px;
    overflow-y: auto;
    text-align: left;
}

.pending-orders-list::-webkit-scrollbar {
    width: 6px;
}

.pending-orders-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.pending-orders-list::-webkit-scrollbar-thumb {
    background: #ffc107;
    border-radius: 10px;
}

.pending-orders-list::-webkit-scrollbar-thumb:hover {
    background: #e0a800;
}

.flip-back-btn-pending-orders {
    padding: 0;
    margin: 0;
    color: #ffc107 !important;
    font-size: 1.2rem;
}

.flip-back-btn-pending-orders:hover {
    color: #e0a800 !important;
}
.dropdown-header {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a2b6d;
    text-transform: uppercase;
    padding: 0.5rem 1rem 0.25rem;
    border-top: 1px solid #e9ecef;
    margin-top: 0.5rem;
}

    .dropdown-header:first-child {
        border-top: none;
        margin-top: 0;
    }

.dropdown-item {
    font-size: 0.9rem;
    color: #333;
}

    .dropdown-item:hover {
        background-color: #f5f7fa;
    }

.highlight-item {
    font-weight: 600;
    color: #1a2b6d; /* same as your headers */
}

.dropdown-header {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a2b6d;
    text-transform: uppercase;
    padding: 0.5rem 1rem 0.25rem;
}

.dropdown-subheading {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a2b6d;
    padding: 0.25rem 1rem 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.highlight-item {
    font-weight: 600;
    color: #1a2b6d;
}

/* ============================================================
   Takt Time Performance Dashboard (TASK-225 restyle)
   All selectors namespaced .sm-* so they sit safely alongside
   Bootstrap and the shared .dashboard-card / .stat-card styles.
   ============================================================ */
:root {
    --sm-navy: #0D173D; /* PANTONE 2768 */
    --sm-navy-2: #141F63; /* PANTONE 2747 */
    --sm-blue: #0503FF; /* PANTONE 286  */
    --sm-teal: #14C4AD; /* PANTONE 3272 */
    --sm-teal-2: #54D6CC; /* PANTONE 3265 */
    --sm-mint: #66F5DB; /* PANTONE 3255 */
    --sm-warm: #D9D4CF; /* PANTONE 427  */
    --sm-grey: #8A8C8F; /* PANTONE 431  */
    --sm-red: #FF5457; /* PANTONE 1787 */
    --sm-bg: #f5f3f0;
    --sm-card: #ffffff;
    --sm-border: #e7e3da;
    /* functional traffic-light status (brand has no amber - --sm-s-amber is a functional addition) */
    --sm-s-green: #14C4AD;
    --sm-s-amber: #E89A3C;
    --sm-s-red: #FF5457;
}

.sm-dashboard, .sm-modal-backdrop {
    /* Neue Haas Grotesk Display Pro is the brand typeface (Adobe Fonts);
       falls back gracefully if the Adobe kit is not loaded. */
    font-family: 'Neue Haas Grotesk Display Pro', 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
}

    .sm-dashboard *, .sm-modal-backdrop * {
        box-sizing: border-box;
    }

.sm-dashboard {
    background-color: var(--sm-bg);
    background-image: radial-gradient(circle, rgba(13,23,61,.045) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--sm-navy);
    padding: 32px;
    border-radius: 14px;
    -webkit-font-smoothing: antialiased;
}

/* ---------- header ---------- */
.sm-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 32px;
}

.sm-title {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
}

.sm-sub {
    font-size: 13px;
    color: var(--sm-grey);
    margin-top: 4px;
    font-weight: 500;
}

    .sm-sub .sm-dot {
        margin: 0 8px;
        opacity: .5;
    }

.sm-filters {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.sm-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .sm-field label {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .09em;
        text-transform: uppercase;
        color: var(--sm-grey);
        margin: 0;
    }

    .sm-field input {
        font-family: inherit;
        font-size: 13px;
        font-weight: 500;
        color: var(--sm-navy);
        border: 1px solid var(--sm-border);
        background: #fff;
        border-radius: 8px;
        padding: 9px 11px;
        outline: none;
    }

        .sm-field input:focus {
            border-color: var(--sm-teal);
            box-shadow: 0 0 0 3px rgba(20,196,173,.15);
        }

.sm-btn {
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1.2;
    transition: background-color .15s ease,
                color .15s ease,
                border-color .15s ease,
                box-shadow .15s ease,
                transform .15s ease;
    will-change: transform;
}

    .sm-btn:hover {
        text-decoration: none;
        transform: translateY(-1px);
    }

    .sm-btn:active {
        transform: translateY(0);
    }

    .sm-btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(20,196,173,.35);
    }

a.sm-btn,
a.sm-btn:hover,
a.sm-btn:focus,
a.sm-btn:visited {
    text-decoration: none;
}

.sm-btn-primary,
a.sm-btn-primary,
a.sm-btn-primary:visited {
    background: var(--sm-navy);
    color: #fff;
    border-color: var(--sm-navy);
}

    .sm-btn-primary:hover,
    a.sm-btn-primary:hover {
        background: var(--sm-navy-2);
        color: #fff;
        border-color: var(--sm-navy-2);
        box-shadow: 0 6px 16px -4px rgba(13,23,61,.32);
    }

.sm-btn-ghost,
a.sm-btn-ghost,
a.sm-btn-ghost:visited {
    background: #fff;
    color: var(--sm-navy);
    border-color: var(--sm-border);
}

    .sm-btn-ghost:hover,
    a.sm-btn-ghost:hover {
        color: var(--sm-navy);
        border-color: var(--sm-navy);
        box-shadow: 0 4px 12px -4px rgba(13,23,61,.18);
    }

/* ---------- loading / empty states ---------- */
.sm-loading {
    text-align: center;
    padding: 60px 0;
}

    .sm-loading .spinner-border {
        color: var(--sm-teal);
    }

    .sm-loading p {
        margin-top: 12px;
        color: var(--sm-grey);
        font-weight: 500;
    }

.sm-empty {
    color: var(--sm-grey);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    padding: 28px 10px;
    background: #faf8f4;
    border-radius: 10px;
}

/* ---------- section scaffolding ---------- */
.sm-section {
    margin-bottom: 36px;
}

    .sm-section:last-child {
        margin-bottom: 0;
    }

.sm-section-head {
    margin-bottom: 14px;
}

.sm-section-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--sm-navy);
}

.sm-section-note {
    font-size: 12px;
    color: var(--sm-grey);
    font-weight: 500;
    margin-top: 2px;
}

/* ---------- headline stats ---------- */
.sm-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sm-stat {
    background: var(--sm-card);
    border: 1px solid var(--sm-border);
    border-radius: 14px;
    padding: 26px 28px;
    position: relative;
    overflow: hidden;
}

    .sm-stat::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 5px;
        background: var(--sm-accent, var(--sm-teal));
    }

.sm-stat-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sm-grey);
}

.sm-stat-scope {
    font-size: 13px;
    font-weight: 600;
    color: var(--sm-navy);
    margin-top: 2px;
}

.sm-stat-value {
    font-size: 60px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--sm-accent, var(--sm-navy));
    margin: 10px 0 4px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.sm-stat-target {
    font-size: 12px;
    color: var(--sm-grey);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 20px;
}

.sm-track {
    margin-top: 16px;
    height: 6px;
    background: #eee9e0;
    border-radius: 4px;
    position: relative;
}

.sm-track-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--sm-accent, var(--sm-teal));
}

/* ---------- card container ---------- */
.sm-card {
    background: var(--sm-card);
    border: 1px solid var(--sm-border);
    border-radius: 14px;
    padding: 22px 24px;
}

/* ---------- tables ---------- */
.sm-table {
    width: 100%;
    border-collapse: collapse;
}

    .sm-table thead th {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .07em;
        text-transform: uppercase;
        color: var(--sm-grey);
        text-align: center;
        padding: 0 10px 12px;
        border-bottom: 1px solid var(--sm-border);
    }

        .sm-table thead th.sm-l {
            text-align: left;
        }

    .sm-table tbody td {
        padding: 14px 10px;
        font-size: 13px;
        text-align: center;
        border-bottom: 1px solid #f0ece3;
        font-variant-numeric: tabular-nums;
        color: var(--sm-navy);
    }

        .sm-table tbody td.sm-l {
            text-align: left;
        }

    .sm-table tbody tr:last-child td {
        border-bottom: none;
    }

    .sm-table tbody tr:hover {
        background: #faf8f4;
    }

.sm-dept-name {
    text-align: left;
    font-weight: 700;
    font-size: 14px;
}

.sm-dept-rank {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 6px;
    background: #f0ece3;
    color: var(--sm-grey);
    font-size: 11px;
    font-weight: 700;
    margin-right: 10px;
    text-align: center;
}

.sm-table tbody tr.sm-worst {
    background: rgba(255,84,87,.045);
}

    .sm-table tbody tr.sm-worst .sm-dept-rank {
        background: var(--sm-red);
        color: #fff;
    }

.sm-frac {
    color: var(--sm-grey);
    font-size: 12px;
}

/* "Not applicable" cell - e.g. a department that does not handle parts */
.sm-na {
    color: var(--sm-grey);
}

.sm-pct-cell {
    min-width: 78px;
}

.sm-pct-num {
    font-weight: 700;
    font-size: 13px;
}

.sm-pct-bar {
    margin-top: 5px;
    height: 4px;
    background: #f0ece3;
    border-radius: 2px;
    overflow: hidden;
}

    .sm-pct-bar > div {
        height: 100%;
        border-radius: 2px;
    }

.sm-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    font-size: 13px;
}

    .sm-status .sm-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
    }

.sm-link {
    color: var(--sm-blue);
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

    .sm-link:hover {
        text-decoration: underline;
    }

/* ---------- status colour helpers ---------- */
.sm-s-green {
    color: var(--sm-s-green);
}

.sm-s-amber {
    color: var(--sm-s-amber);
}

.sm-s-red {
    color: var(--sm-s-red);
}

.sm-bg-green {
    background: var(--sm-s-green);
}

.sm-bg-amber {
    background: var(--sm-s-amber);
}

.sm-bg-red {
    background: var(--sm-s-red);
}

/* ---------- off-target reasons ---------- */
.sm-two-col {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    align-items: start;
}

.sm-cum-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sm-grey);
    margin-bottom: 12px;
}

.sm-cum-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #f0ece3;
}

    .sm-cum-row .sm-cum-label {
        color: var(--sm-navy);
        font-weight: 600;
    }

    .sm-cum-row .sm-cum-value {
        color: var(--sm-grey);
        font-variant-numeric: tabular-nums;
    }

.sm-cum-summary {
    margin-top: 12px;
    font-size: 12px;
    color: var(--sm-grey);
    font-weight: 500;
}

    .sm-cum-summary strong {
        color: var(--sm-navy);
    }

.sm-reasons-foot {
    margin-top: 14px;
    font-size: 12px;
    color: var(--sm-grey);
    font-weight: 500;
}

.sm-notes-wrap {
    margin-top: 14px;
    border-top: 1px solid var(--sm-border);
    padding-top: 16px;
    display: none;
}

    .sm-notes-wrap.sm-open {
        display: block;
    }

.sm-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 3px 8px;
    border-radius: 5px;
    text-transform: uppercase;
}

.sm-badge-chair {
    background: rgba(5,3,255,.1);
    color: var(--sm-blue);
}

.sm-badge-part {
    background: rgba(20,196,173,.14);
    color: #0d8a78;
}

.sm-note-text {
    text-align: left;
    color: var(--sm-navy);
}

/* ---------- drill-down modal ---------- */
.sm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(13,23,61,.45);
    backdrop-filter: blur(3px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 56px 20px;
    z-index: 1080;
    overflow-y: auto;
}

    .sm-modal-backdrop.sm-open {
        display: flex;
    }

.sm-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 760px;
    box-shadow: 0 24px 60px rgba(13,23,61,.35);
    overflow: hidden;
}

.sm-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px 26px;
    background: var(--sm-navy);
    color: #fff;
    background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 22px 22px;
}

.sm-modal-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sm-teal-2);
}

.sm-modal-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 3px;
}

.sm-modal-close {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

    .sm-modal-close:hover {
        background: rgba(255,255,255,.24);
    }

.sm-modal-body {
    padding: 24px 26px 28px;
    color: var(--sm-navy);
}

.sm-modal-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 26px;
}

.sm-mstat {
    border: 1px solid var(--sm-border);
    border-radius: 10px;
    padding: 14px 16px;
}

.sm-mstat-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--sm-grey);
}

.sm-mstat-value {
    font-size: 24px;
    font-weight: 800;
    margin-top: 6px;
    font-variant-numeric: tabular-nums;
}

.sm-mstat-frac {
    font-size: 11px;
    color: var(--sm-grey);
    font-weight: 500;
}

.sm-modal-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--sm-navy);
}

.sm-modal-section-note {
    font-size: 12px;
    color: var(--sm-grey);
    font-weight: 500;
    margin: 2px 0 12px;
}

@media (max-width: 900px) {
    .sm-stat-grid, .sm-two-col {
        grid-template-columns: 1fr;
    }

    .sm-modal-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- settings page extensions ---------- */
.sm-stat-grid-1 {
    grid-template-columns: minmax(0, 360px);
}

.sm-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sm-field-lg input {
    font-size: 18px;
    font-weight: 600;
    padding: 12px 14px;
    width: 100%;
    max-width: 220px;
}

.sm-field-lg label {
    font-size: 11px;
}

.sm-help {
    font-size: 12px;
    color: var(--sm-grey);
    font-weight: 500;
    margin-top: 2px;
    line-height: 1.5;
}

.sm-section-lede {
    font-size: 13px;
    color: var(--sm-navy);
    font-weight: 500;
    line-height: 1.55;
    max-width: 640px;
    margin: 0 0 14px;
}

.sm-form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-top: 4px;
}

.sm-banner {
    position: relative;
    background: var(--sm-card);
    border: 1px solid var(--sm-border);
    border-radius: 12px;
    padding: 14px 44px 14px 22px;
    margin-bottom: 22px;
    font-size: 13px;
    font-weight: 500;
    color: var(--sm-navy);
    overflow: hidden;
}

    .sm-banner::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 5px;
        background: var(--sm-accent, var(--sm-teal));
    }

.sm-banner-success {
    --sm-accent: var(--sm-s-green);
}

.sm-banner-error {
    --sm-accent: var(--sm-s-red);
}

.sm-banner-close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--sm-grey);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

    .sm-banner-close:hover {
        color: var(--sm-navy);
        background: #f0ece3;
    }

.sm-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 10px 4px 9px;
    border-radius: 999px;
    background: #f0ece3;
    color: var(--sm-grey);
}

    .sm-pill .sm-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: currentColor;
    }

.sm-pill-success {
    background: rgba(20,196,173,.12);
    color: var(--sm-s-green);
}

.sm-pill-muted {
    background: #f0ece3;
    color: var(--sm-grey);
}

.sm-pill-info {
    background: rgba(20,31,99,.08);
    color: var(--sm-navy-2);
}

.sm-pill-danger {
    background: rgba(255,84,87,.10);
    color: var(--sm-s-red);
}

/* ---------- toolbar ---------- */
.sm-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 18px;
}

.sm-toolbar-left,
.sm-toolbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.sm-toolbar-meta {
    font-size: 12px;
    font-weight: 500;
    color: var(--sm-grey);
    font-variant-numeric: tabular-nums;
}

    .sm-toolbar-meta strong {
        color: var(--sm-navy);
        font-weight: 700;
    }

/* ---------- segmented control ---------- */
.sm-segment {
    display: inline-flex;
    background: var(--sm-card);
    border: 1px solid var(--sm-border);
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}

    .sm-segment a,
    .sm-segment button {
        font-family: inherit;
        font-size: 12px;
        font-weight: 600;
        color: var(--sm-grey);
        background: transparent;
        border: none;
        padding: 7px 14px;
        border-radius: 7px;
        text-decoration: none;
        cursor: pointer;
        line-height: 1.2;
    }

        .sm-segment a:hover,
        .sm-segment button:hover {
            color: var(--sm-navy);
            text-decoration: none;
        }

        .sm-segment a.is-active,
        .sm-segment button.is-active {
            background: var(--sm-navy);
            color: #fff;
        }

/* ---------- icon-only / leading icons on buttons ---------- */
.sm-btn .sm-btn-icon {
    margin-right: 6px;
    font-size: 12px;
}

.sm-btn-danger-ghost {
    background: #fff;
    color: var(--sm-s-red);
    border-color: rgba(255,84,87,.35);
}

    .sm-btn-danger-ghost:hover {
        background: rgba(255,84,87,.06);
        border-color: var(--sm-s-red);
        color: var(--sm-s-red);
        box-shadow: 0 4px 12px -4px rgba(255,84,87,.28);
    }

.sm-btn-sm {
    font-size: 12px;
    padding: 7px 12px;
    border-radius: 7px;
}

/* ---------- pagination ---------- */
.sm-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

    .sm-pagination a,
    .sm-pagination span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 34px;
        height: 34px;
        padding: 0 10px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 600;
        color: var(--sm-navy);
        background: var(--sm-card);
        border: 1px solid var(--sm-border);
        text-decoration: none;
        font-variant-numeric: tabular-nums;
    }

        .sm-pagination a:hover {
            border-color: var(--sm-grey);
            text-decoration: none;
        }

        .sm-pagination .is-active {
            background: var(--sm-navy);
            color: #fff;
            border-color: var(--sm-navy);
        }

        .sm-pagination .is-disabled {
            color: #c8c4ba;
            background: transparent;
            border-color: transparent;
            cursor: not-allowed;
        }

        .sm-pagination .sm-gap {
            border: none;
            background: transparent;
            color: var(--sm-grey);
            min-width: 0;
            padding: 0 4px;
        }

/* tighter cell padding when a row carries a trailing action button */
.sm-table tbody td.sm-action-cell {
    padding-top: 8px;
    padding-bottom: 8px;
}

/* ---------- back link ---------- */
.sm-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sm-navy);
    text-decoration: none;
    margin-bottom: 22px;
    padding: 7px 14px 7px 11px;
    border: 1px solid var(--sm-border);
    border-radius: 999px;
    background: var(--sm-card);
    transition: border-color .12s ease, color .12s ease, background .12s ease;
}

    .sm-back:hover {
        color: var(--sm-navy);
        border-color: var(--sm-navy);
        background: #fff;
        text-decoration: none;
    }

    .sm-back .sm-back-chevron {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: var(--sm-navy);
        color: #fff;
        font-size: 10px;
        line-height: 1;
    }

    .sm-back:hover .sm-back-chevron {
        background: var(--sm-teal);
    }

/* ---------- validation ---------- */
.sm-validation {
    color: var(--sm-s-red);
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

.sm-validation-summary {
    background: rgba(255,84,87,.06);
    border: 1px solid rgba(255,84,87,.25);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

    .sm-validation-summary ul {
        margin: 0;
        padding-left: 18px;
        color: var(--sm-s-red);
        font-size: 13px;
        font-weight: 500;
    }

    .sm-validation-summary:empty {
        display: none;
    }

/* required-field indicator */
.sm-required::after {
    content: "*";
    color: var(--sm-s-red);
    margin-left: 4px;
}

/* full-width input (defaults to capped width inside .sm-field-lg) */
.sm-field-block input,
.sm-field-block textarea {
    width: 100%;
    max-width: none;
}

/* ---------- single-column form layout ---------- */
.sm-form-narrow {
    max-width: 560px;
}

.sm-textinput-lg {
    width: 100%;
    font-size: 15px;
    font-weight: 500;
    padding: 11px 13px;
}

/* two fields side-by-side; collapses to one column on small screens */
.sm-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 600px) {
    .sm-field-row {
        grid-template-columns: 1fr;
    }
}

/* time-input variant - clean monospaced rendering */
.sm-field-time input {
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    padding: 11px 13px;
    max-width: none;
    width: 100%;
}

/* branded select to match the input styling */
.sm-field select {
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--sm-navy);
    background: #fff;
    border: 1px solid var(--sm-border);
    border-radius: 8px;
    padding: 11px 36px 11px 13px;
    outline: none;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'><path fill='none' stroke='%230D173D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1l4 4 4-4'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 10px 6px;
    cursor: pointer;
}

    .sm-field select:focus {
        border-color: var(--sm-teal);
        box-shadow: 0 0 0 3px rgba(20,196,173,.15);
    }

/* ---------- toggle chips (multi-select) ---------- */
.sm-toggle-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.sm-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--sm-border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color .12s ease, background .12s ease, box-shadow .12s ease;
}

    .sm-toggle:hover {
        border-color: var(--sm-grey);
    }

    .sm-toggle input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .sm-toggle .sm-toggle-check {
        flex: 0 0 18px;
        width: 18px;
        height: 18px;
        border-radius: 5px;
        border: 1.5px solid var(--sm-border);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 10px;
        line-height: 1;
        transition: background .12s ease, border-color .12s ease;
    }

    .sm-toggle .sm-toggle-body {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }

    .sm-toggle .sm-toggle-title {
        font-size: 13px;
        font-weight: 700;
        color: var(--sm-navy);
        line-height: 1.2;
    }

    .sm-toggle .sm-toggle-meta {
        font-size: 11px;
        color: var(--sm-grey);
        font-weight: 500;
        font-variant-numeric: tabular-nums;
    }

    .sm-toggle input[type="checkbox"]:checked ~ .sm-toggle-check {
        background: var(--sm-teal);
        border-color: var(--sm-teal);
        box-shadow: 0 0 0 3px rgba(20,196,173,.18);
    }

    .sm-toggle input[type="checkbox"]:checked ~ .sm-toggle-body .sm-toggle-title {
        color: var(--sm-teal-2);
    }

/* ---------- toggle groups (grouped multi-select) ---------- */
.sm-toggle-group {
    margin-bottom: 24px;
}

    .sm-toggle-group:last-child {
        margin-bottom: 0;
    }

.sm-toggle-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--sm-border);
}

.sm-toggle-group-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sm-navy);
}

.sm-toggle-group-count {
    font-size: 11px;
    color: var(--sm-grey);
    font-variant-numeric: tabular-nums;
}

/* ---------- table inputs (for editable table rows) ---------- */
.sm-table-input {
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--sm-navy);
    border: 1px solid var(--sm-border);
    background: #fff;
    border-radius: 7px;
    padding: 7px 10px;
    outline: none;
    width: 100%;
    max-width: 120px;
    font-variant-numeric: tabular-nums;
}

    .sm-table-input:focus {
        border-color: var(--sm-teal);
        box-shadow: 0 0 0 3px rgba(20,196,173,.15);
    }

.sm-table tbody td.sm-input-cell {
    padding-top: 8px;
    padding-bottom: 8px;
}

/* small inline helper text used inside table cells */
.sm-inline-help {
    display: block;
    font-size: 11px;
    color: var(--sm-grey);
    font-weight: 500;
    margin-top: 4px;
    text-align: center;
}

/* sequence badge cell */
.sm-seq-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 7px;
    background: #f0ece3;
    color: var(--sm-navy);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ---------- meta grid (definition-list-as-grid) ---------- */
.sm-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 22px 28px;
}

.sm-meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.sm-meta-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--sm-grey);
}

.sm-meta-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--sm-navy);
    line-height: 1.3;
    word-break: break-word;
}

    .sm-meta-value.sm-tabular {
        font-variant-numeric: tabular-nums;
    }

    .sm-meta-value.sm-meta-value-lg {
        font-size: 28px;
        font-weight: 800;
        letter-spacing: -0.02em;
    }

/* ---------- status block (header-level prominent status) ---------- */
.sm-status-block {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(20,196,173,.12);
    color: var(--sm-s-green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

    .sm-status-block .sm-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: currentColor;
    }

    .sm-status-block.is-inactive {
        background: #f0ece3;
        color: var(--sm-grey);
    }

/* ---------- read-only chips (for displaying selections) ---------- */
.sm-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sm-chip {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border: 1px solid var(--sm-border);
    border-radius: 10px;
    background: #fff;
    min-width: 0;
}

.sm-chip-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--sm-navy);
    line-height: 1.2;
}

.sm-chip-meta {
    font-size: 11px;
    font-weight: 500;
    color: var(--sm-grey);
    font-variant-numeric: tabular-nums;
}

/* ---------- danger zone (destructive action card) ---------- */
.sm-danger-zone {
    position: relative;
    overflow: hidden;
}

    .sm-danger-zone::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 5px;
        background: var(--sm-s-red);
    }

.sm-danger-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sm-s-red);
    margin-bottom: 4px;
}

.sm-danger-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--sm-navy);
    margin: 0 0 6px;
}

.sm-danger-lede {
    font-size: 13px;
    color: var(--sm-navy);
    font-weight: 500;
    line-height: 1.55;
    max-width: 560px;
    margin: 0 0 16px;
}

.sm-btn-danger {
    background: var(--sm-s-red);
    color: #fff;
    border-color: var(--sm-s-red);
}

    .sm-btn-danger:hover {
        background: #e23e41;
        border-color: #e23e41;
        color: #fff;
        box-shadow: 0 6px 16px -4px rgba(255,84,87,.4);
    }