﻿.TitleBorder
{
    border: 1px solid #999;
    line-height: 25px;
    color: #363167;
    font-weight: bold;
    margin: 15px 0px 15px 0px;
    padding: 3px;
}
.TitleBorder label
{
    padding-left: 10px;
    color: #363167;
    font-weight: bold;
}
.TitleBorder span
{
    padding-left: 10px;
    color: #363167;
    font-weight: bold;
}
.TightGrid
{
    width: 100%;
    border: none;
    line-height: 10px;
}
.TightGrid tr th
{
    font-weight: bold;
    padding: 0px 10px 0px 0px;
}

.TightGrid .GridViewFirstCol
{
    color: #363167;
    line-height: 25px;
}

.NoBordersGridNoAlt
{
    width: 100%;
    border: none;
    line-height: 25px;
}

.NoBordersGridNoAlt tr th
{
    font-weight: bold;
    padding: 0px 0px 0px 0px;
}

.NoBordersGridNoAlt .GridViewFirstCol
{
    color: #363167;
    line-height: 25px;
}

.NoBordersGrid
{
    width: 100%;
    border: none;
    line-height: 25px;
}

.NoBordersGrid tr:nth-child(even)   { background-color:#e6e6e6; }

.NoBordersGrid tr th
{
    font-weight: bold;
    padding: 0px 0px 0px 0px;
    /* padding: 0px 0px 10px 0px; */
}

.NoBordersGrid .GridViewFirstCol
{
    color: #363167;
    line-height: 25px;
}

.LinkNoneUnderLine
{
    text-decoration: none;
}
.LinkNoneUnderLine a
{
    text-decoration: none;
}
.alignMiddle
{
    line-height: 25px;
    vertical-align: middle;
}
.MainMenu
{
    left: 0px;
    top: 140px;
    border: solid 1px gray;
    z-index: 100; /*for IE8 Menu*/
}
.MainMenu table
{
    line-height: 25px;
    text-align: left;
    padding: 0px 0px 0px 0px;
    background-color: #f0f0f0;
}
.MainMenu table tr td
{
    border-bottom: solid 1px #fff;
    padding: 0px 5px 0px 5px;
}
.MainMenu table tr td a:hover
{
    text-decoration: underline;
    color: MenuText;
}
.MainMenu table tr td a
{
    text-decoration: none;
    color: gray;
}
.tab tr td
{
    border: 1px solid #999;
    padding: 5px;
    font-family: Arial;
}

.TextLeft
{
    text-align: left;
}
.TextRight
{
    text-align: right;
}
.FontBold
{
    font-weight: bold;
}
.alignCenter
{
    text-align: center;
}
.alignLeft
{
    text-align: left;
}

.alighRight
{
    text-align: right;
}
.hide
{
    display: none;
}
.spanKPI
{
    width: 50px;
    border: solid 1px white;
}
.buttonlink
{
    text-decoration: none;
    color: #000;
}
.aLink
{
    text-decoration: none;
}
.btnSmall
{
    width: 100px;
}

a:link, a:hover, a:visited
{
    text-decoration: none;
}

.divAlignMiddle
{
    vertical-align: middle;
    font-weight:bold;
}
.ThTdNowrap tr th{ white-space:nowrap; padding-right:15px; font-weight:bold;}
.NoWrap td{white-space:nowrap; }
.NoWrap {white-space:nowrap; padding-right:15px; line-height:25px;}
.BtnHaveNote
{
	background-color:#CC99FF;
}
.PagerClass td
{
 width:10px;
}

.PartPagerClass td
{
 width:50px;
}
.Part-Backgroud-color-red
{
    background-color:#ffcccc;
}
.Part-Backgroud-color-yellow
{
 background-color:#ffffcc;
}


.NAExportLink
{
    text-decoration: underline;
    color:Black;
    cursor:Pointer;    
}
.NewExportLink
{
    text-decoration: underline;
    color:Green;
    cursor:Pointer;    
}
.UpdateExportLink
{
    text-decoration: underline;
    color:Blue;
    cursor:Pointer;    
}
.DeleteExportLink
{
    text-decoration: underline;
    color:Gray;
    cursor:Pointer;    
}
.SkipedExportLink
{
    text-decoration: underline;
    color:Red;
    cursor:Pointer;    
}
.FailedExportLink
{
    text-decoration: underline;
    color:Red;
    cursor:Pointer;    
}
.DoneExportLink
{
    text-decoration: underline;
    color:Gray;
    cursor:Pointer;
}

.PartColumnItem
{
    white-space:nowrap; 
    padding-right:5px; 
    line-height:25px;
    cursor:pointer;  
    text-align: center;
}

th.PartColumnItem {
    white-space: nowrap;
    padding-right: 5px;
    line-height: 25px;
    cursor: default;
    text-align: center;
}

td.PartColumnItem {
    white-space: nowrap;
    padding-right: 5px;
    line-height: 25px;
    cursor: pointer;
    text-align: center;
}

.PartColumnItemHeader
{
    white-space:nowrap; 
    padding-right:5px; 
    line-height:25px;
    font-weight:bold;
    white-space:nowrap;
    text-align:center;
}
.PartColumnItemHeader a {
    cursor: pointer;
}

.PartColumnPrice {
    width: 60px;
    white-space: nowrap;
    padding-right: 5px;
    line-height: 25px;
    cursor: pointer;
    text-align: center;
}

/*----*/

.gvHeaderRight
{
    padding: 0 0 0 0;
    text-align: right;
}

.invisible
{
display:none;
}

.ProfitabilityColour
{
    color: #CC3333;
    font-weight: bold;
}


.opportunity-closed
{
 background-color:#ffffff;
}
.opportunity-cold
{
 background-color:#fbe956;
}
.opportunity-warm
{
 background-color:#fba756;
}
.opportunity-hot
{
 background-color:#fb5656;
 color:#ffffff;
}
.opportunity-buying
{
 background-color:#56fb75;
}

/*New View Order Address Styles*/
.order-summary {
    padding: 12px;
    background: #f5f5f5;
    border: 1px solid #ccc;
}

.address-row {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.address-card {
    flex: 1;
    background: #fff;
    border: 1px solid #d0d0d0;
    padding: 12px 14px;
}

    .address-card h3 {
        margin: 0 0 10px;
        font-size: 14px;
        border-bottom: 1px solid #ddd;
        padding-bottom: 6px;
    }

    .address-card p {
        margin: 0 0 6px;
        line-height: 1.4;
    }

.order-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #d0d0d0;
    padding: 10px 14px;
    margin-bottom: 16px;
}

.order-due {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

    .order-due label {
        font-weight: bold;
        margin-right: 6px;
    }

.date-input {
    width: 80px;
}

.calendar-icon {
    cursor: pointer;
    vertical-align: middle;
}

.delivery-method {
    min-width: 170px;
}

.update-button {
    padding: 2px 10px;
}

.action-link {
    margin-left: 6px;
}

.order-date {
    white-space: nowrap;
}
/*New View Order Address Styles*/

/*New Order Product and Parts Styles*/
.product-card {
    background: #fff;
    border: 1px solid #ccc;
    margin-bottom: 16px;
    padding: 12px;
}

.product-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.section-label {
    font-weight: bold;
    margin-bottom: 6px;
}

.product-title {
    line-height: 1.5;
}

    .product-title a,
    .parts-table a:not(:first-child) {
        margin-left: 2px;
    }

.product-actions {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    white-space: nowrap;
}

.parts-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.col-parts {
    width: 58%;
}

.col-notes {
    width: 8%;
}

.col-qty {
    width: 6%;
}

.col-price {
    width: 14%;
}

.col-total {
    width: 14%;
}

.parts-table input[type="text"] {
    width: 85px;
    box-sizing: border-box;
}

.parts-table th {
    background: #f1f1f1;
    border-bottom: 1px solid #ccc;
    padding: 7px 8px;
    font-weight: bold;
}

.parts-table td {
    border-bottom: 1px solid #e0e0e0;
    padding: 7px 8px;
    vertical-align: top;
}

.parts-table tbody tr:hover {
    background: #fafafa;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.small-button {
    padding: 2px 10px;
    min-height: 22px;
    cursor: pointer;
}

.order-total-box {
    width: 260px;
    margin-left: auto;
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px 12px;
}

    .order-total-box div {
        display: flex;
        justify-content: space-between;
        margin-bottom: 6px;
    }

        .order-total-box div:last-child {
            margin-bottom: 0;
            border-top: 1px solid #ddd;
            padding-top: 6px;
        }

.order-message {
    text-align: center;
    color: red;
    font-size: 18px;
    margin-top: 12px;
}
/*New Order Product and Parts Styles*/

/*New Order Actions Button Bar*/
.order-button-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding: 12px;
    background: #fff;
    border: 1px solid #ccc;
}

.order-action-button {
    min-height: 26px;
    padding: 4px 12px;
    border: 1px solid #999;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 12px;
}

    .order-action-button:hover {
        background: #e9e9e9;
    }

    .order-action-button.primary {
        font-weight: bold;
    }

    .order-action-button.danger {
        color: #900;
        border-color: #b88;
    }
/*New Order Actions Button Bar*/

/*New Payment History Styles*/
.section-card {
    background: #fff;
    border: 1px solid #ccc;
    margin-top: 16px;
}

.section-header {
    padding: 12px 14px;
    font-weight: bold;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
    background: #f7f7f7;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modern-grid {
    border-collapse: collapse;
    width: 100%;
}

    .modern-grid th {
        background: #f1f1f1;
        border-bottom: 1px solid #ccc;
        padding: 8px 10px;
        text-align: left;
        font-weight: bold;
        white-space: nowrap;
    }

    .modern-grid td {
        padding: 8px 10px;
        border-bottom: 1px solid #e5e5e5;
        vertical-align: top;
    }

    .modern-grid tr:hover td {
        background: #fafafa;
    }

.text-right {
    text-align: right;
}

.payment-summary {
    padding: 14px;
    display: flex;
    justify-content: flex-end;
}

.payment-summary-row {
    width: 300px;
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #ddd;
    font-size: 14px;
}

.balance-outstanding {
    color: #e13939;
    font-weight: bold;
}

.balance-paid {
    color: #47b94d;
    font-weight: bold;
}
/*New Payment History Styles*/

/*New Job History Styles*/
.tracking-header {
    font-size: 12px;
    font-weight: normal;
    color: #555;
}

.status-cell {
    white-space: nowrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.status-nonorder {
    background: #eceff1;
    color: #455a64;
}

.status-required {
    background: #ede7f6;
    color: #5e35b1;
}

.status-ordered {
    background: #e3f2fd;
    color: #1565c0;
}

.status-warehouse {
    background: #e0f7fa;
    color: #00838f;
}

.status-workshop {
    background: #fff3e0;
    color: #ef6c00;
}

.status-complete {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-shipped {
    background: #dcedc8;
    color: #33691e;
}

.status-cancelled {
    background: #ffebee;
    color: #c62828;
}


.status-default {
    background: #f5f5f5;
    color: #555;
}
/*New Job History Styles*/

.tracking-input {
    width: 110px;
    max-width: 110px;
    height: 20px;
    font-size: 12px;
    padding: 1px 4px;
    box-sizing: border-box;
}

.tracking-edit-link {
    margin-left: 4px;
    white-space: nowrap;
}

.tracking-cell {
    width: 160px;
    min-width: 160px;
    max-width: 160px;
    white-space: nowrap;
}

/* Workshop Ready/ReadyOrder */
.part-name-cell {
    width: 300px;
    max-width: 300px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
/* Workshop Ready/ReadyOrder */