/* Shared, presentation-only normalization for FSM_Demo.
   This file intentionally does not change control identity, visibility or workflow. */
html, body, input, select, textarea, button {
    font-family: "Segoe UI", Calibri, Arial, sans-serif;
}

body {
    color: #15384d;
}

.demo-form-intro {
    margin: 10px 18px 4px;
    padding: 10px 14px;
    border-left: 4px solid #1595bd;
    border-radius: 4px;
    background: #eef8fc;
    color: #31566a;
    font-size: 13px;
    line-height: 1.45;
}

.demo-form-intro strong {
    color: #07577c;
}

.demo-section-toggle {
    margin: 8px 18px 2px;
    text-align: right;
}

.demo-section-toggle button {
    min-height: 30px;
    padding: 5px 12px;
    font-size: 12px;
}

fieldset {
    margin: 14px 10px;
    padding: 16px 18px 18px;
    border: 1px solid #c9dce7;
    border-radius: 9px;
    background-color: #fff;
    box-shadow: 0 2px 7px rgba(21, 74, 102, 0.06);
}

legend {
    padding: 0 10px;
    color: #07577c;
    font-size: 18px;
    font-weight: 600;
}

input[type="text"], input[type="password"], input[type="email"],
input[type="number"], input[type="date"], select, textarea {
    box-sizing: border-box;
    min-height: 34px;
    padding: 6px 9px;
    border: 1px solid #b9cedb;
    border-radius: 5px;
    background-color: #fff;
    color: #173b50;
}

textarea {
    min-height: 64px;
}

input[type="text"]:focus, input[type="password"]:focus,
input[type="email"]:focus, input[type="number"]:focus,
input[type="date"]:focus, select:focus, textarea:focus {
    outline: 2px solid rgba(16, 145, 190, 0.22);
    border-color: #168fb9;
    box-shadow: 0 0 0 2px rgba(16, 145, 190, 0.08);
}

input[type="submit"], input[type="button"], button,
.button, .primary-action, .secondary-action {
    box-sizing: border-box;
    min-height: 34px;
    padding: 7px 16px;
    border: 1px solid #087da7;
    border-radius: 5px;
    background: linear-gradient(#20a4cf, #0784b1);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 76, 108, 0.16);
}

input[type="submit"]:hover, input[type="button"]:hover, button:hover,
.button:hover, .primary-action:hover, .secondary-action:hover {
    background: #087fa9;
}

input[type="submit"]:focus, input[type="button"]:focus, button:focus,
.button:focus, .primary-action:focus, .secondary-action:focus {
    outline: 3px solid rgba(14, 146, 190, 0.25);
    outline-offset: 1px;
}

.mGrid, .data-grid, .mr-grid, .stock-grid,
.dataTables_wrapper table {
    border-collapse: collapse;
}

.mGrid th, .data-grid th, .mr-grid th, .stock-grid th,
.dataTables_wrapper table th {
    padding: 9px 8px;
    background: #2788ab;
    color: #fff;
    font-weight: 600;
    border-color: #197695;
}

.mGrid td, .data-grid td, .mr-grid td, .stock-grid td,
.dataTables_wrapper table td {
    padding: 7px 8px;
    border-color: #cbdce5;
    vertical-align: middle;
}

.mGrid tr:nth-child(even) td, .data-grid tr:nth-child(even) td,
.mr-grid tr:nth-child(even) td, .stock-grid tr:nth-child(even) td {
    background-color: #f6fafc;
}

.pager, .pgr, .grid-pager, .mr-pager, .stock-pager,
.dataTables_paginate {
    padding: 9px 6px;
    white-space: nowrap;
}

.pager a, .pgr a, .grid-pager a, .mr-pager a, .stock-pager a,
.dataTables_paginate a {
    display: inline-block;
    margin: 1px 2px;
    padding: 5px 9px;
    border: 1px solid #aac8d7;
    border-radius: 4px;
    background: #fff;
    color: #076f98;
    text-decoration: none;
}

.fixedGridHeight, .dataTables_wrapper, .demo-wide-table {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#selectedMrDetails, #returnItems {
    scroll-margin-top: 18px;
}

#fsm-demo-loading {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8, 37, 52, 0.28);
}

#fsm-demo-loading .fsm-demo-loading-card {
    min-width: 190px;
    padding: 18px 24px;
    border-radius: 8px;
    background: #fff;
    color: #17465d;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 8px 28px rgba(0, 37, 55, 0.25);
}

#fsm-demo-loading .fsm-demo-spinner {
    width: 26px;
    height: 26px;
    margin: 0 auto 10px;
    border: 3px solid #d6e9f1;
    border-top-color: #138eb8;
    border-radius: 50%;
    animation: fsm-demo-spin 0.75s linear infinite;
}

@keyframes fsm-demo-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1100px) {
    fieldset {
        margin-left: 6px;
        margin-right: 6px;
        padding-left: 12px;
        padding-right: 12px;
    }
}
.amc-proposal-guide {
    border-left: 4px solid #148fb8;
    background: #eef8fc;
}

.proposal-optional {
    color: #64748b;
    font-size: 0.86em;
    font-weight: normal;
    white-space: nowrap;
}

.asset-onboarding-action {
    margin: 8px 0 12px;
    padding: 10px 12px;
    border: 1px solid #b9dbea;
    border-radius: 5px;
    background: #f2f9fc;
    text-align: left;
}

.inline-asset-model,
.inline-asset-serial {
    box-sizing: border-box;
    min-width: 150px;
    width: 100%;
    height: 34px !important;
    padding: 5px 8px !important;
}

.inline-asset-model {
    min-width: 230px;
}

.asset-field-error {
    border-color: #d9534f !important;
    background: #fff5f5 !important;
}

.asset-status {
    min-width: 105px;
    font-weight: 600;
    text-align: center;
}

.asset-complete {
    color: #287a3f;
}

.asset-incomplete {
    color: #b4493f;
}

.asset-onboarding-action input {
    margin-right: 12px;
}

.asset-onboarding-action span {
    color: #466577;
    font-size: 12px;
}

.call-provider-inline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: 12px;
    vertical-align: middle;
    white-space: nowrap;
}

.call-provider-inline input[type="text"] {
    width: 150px !important;
    min-width: 150px;
    margin: 0 !important;
}

.demo-advanced-filter {
    display: none;
}

.amc-flow-note {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 10px 12px;
    padding: 11px 14px;
    border: 1px solid #b9dbea;
    border-left: 4px solid #148fb8;
    border-radius: 5px;
    background: #eef8fc;
    color: #244d61;
}

.amc-flow-note span {
    padding: 4px 8px;
    border-radius: 12px;
    background: #fff;
}

.amc-quick-filter {
    min-height: 32px;
    margin: 2px 5px 2px 0;
    padding: 5px 12px;
    border: 1px solid #148fb8;
    border-radius: 4px;
    background: #fff;
    color: #0c6f91;
    cursor: pointer;
}

.amc-quick-filter:hover,
.amc-quick-filter:focus {
    background: #e7f6fb;
}
