﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    margin: 0;
}

.navbar-light .navbar-nav .nav-link {
    color: white;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: lightgoldenrodyellow;
}

.navbar-light .navbar-nav .nav-link:not(:hover) {
    color: white;
}

.dropdown-menu {
    font-size: 14px;
    background-color: aliceblue;
}

.dropdown-menu .dropdown-header {
    /*background-color: lightcyan;*/
    color:black;
}

/*.dropdown-menu .dropdown-item {*/
/*}*/

.dropdown-menu .dropdown-item:hover {
    background-color: #c0c6cc;
}

.page {
    position: relative; /* Important to set stacking context */
    z-index: 0; /* Ensures it's above the background */
    min-height: 100vh; /* 👈 Ensures it fills full viewport height */
}


.summary-tiles .tile {
    background-color: #ffffffcc;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    color: #333;
    transition: all 0.2s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 130px;
}

.summary-tiles .tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.summary-tiles .row > div {
    display: flex;
}

@media (max-width: 768px) {
    .summary-tiles .col-md-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .summary-tiles .col-md-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}



.tile-icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.tile-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 4px;
}

.tile-value {
    font-size: 1.1rem;
    font-weight: bold;
}



.page-border{
    padding: 20px; 
    border: 1px solid goldenrod; 
    border-radius: 10px
}

.home-container {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #dddddd;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.workspace-container {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #dddddd;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    padding-left: 12px;
    padding-right: 12px;
    z-index: 1;
}

.userinfo {
    border: 1px solid #2e7d32;
    background-color: #f9f9f9;
    color: #333;
    padding: 7px 7px;
    border-radius: 10px;
    font-size: 15px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}


.login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/Designer.jpeg') no-repeat center center;
    background-size: cover;
    opacity: 1;
    z-index: -1; /* Ensures it stays behind */
    pointer-events: none;
}

/*.login-background::before {*/
/*    content: "";*/
/*    position: fixed;*/
/*    top: 0; left: 0;*/
/*    width: 100%; height: 100%;*/
/*    background-color: rgba(0, 0, 0, 0.9); !* adjust darkness *!*/
/*    z-index: -1;*/
/*}*/

.login-background::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1); /* Adjust alpha for strength */
    z-index: 1;
    pointer-events: none;
}

.watermark-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/Designer.jpeg') no-repeat center center;
    background-size: cover;
    opacity: 0.07;
    z-index: -1; /* Ensures it stays behind */
    pointer-events: none;
}

.frosted-content {
    background-color: rgba(255, 255, 255, 0.2); /* Optional light tint */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* for Safari */
    border-radius: 1rem;
    padding: 1rem;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 1);
}

/* More transparent for login/register */
.navbar-transparent-strong {
    background-color: rgba(0, 0, 0, 0.1);
    /*backdrop-filter: blur(6px);*/
    /*-webkit-backdrop-filter: blur(6px);*/
    color: white;
    /*box-shadow: 0 0 10px rgba(143, 139, 139, 0.2);*/
    z-index: 100;
}

/* Less transparent (darker) for normal pages */
.navbar-transparent-light {
    background-color: rgba(0, 113, 193, 1);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    color: white;
    box-shadow: 0 0 10px rgba(143, 139, 139, 0.4);
    z-index: 100;
}


.login-card {
    width: 100%;
    max-width: 400px;
    border-radius: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: white;
}

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    /*min-height: 100vh;*/
    padding: 2rem;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .login-wrapper {
        padding-top: 60px;
    }
}

/* Fixed logo in bottom-left corner */
.login-fixed-logo {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -35%);
    max-width: 50%;
    opacity: 0.16;
    z-index: 0;
    pointer-events: none;
}


@media (max-width: 768px) {
    .login-fixed-logo {
        max-width: 70%;
        opacity: 0.16;
    }
}


.page-watermark-logo {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -35%);
    max-width: 50%;
    opacity: 0.07;
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .page-watermark-logo {
        max-width: 70%;
        opacity: 0.07;
    }
}


.modal .modal-body {
    overflow-y: auto;
    max-height: 350px;
    z-index: 9999999999;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.e-btn .btn-primary {
    color: #fff;
    background: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.e-dialog .e-dlg-header-content .e-btn.e-dlg-closeicon-btn{
    width: 30px;
    height: 30px;
}

/*  Print Styles Start */

.page-styles {
    font-family: 'Calibri', 'Arial', sans-serif;
    text-align: left;
    font-size: 13px;
}

.page-styles-fs {
    font-family: 'Calibri', 'Arial', sans-serif;
    text-align: left;
    font-size: 13px;
    position: relative;
    min-height: 842px; /* ensure the page has enough height */
}


.invoice-logo-fs {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    transform: translate(-50%, -50%);
    background: url('../images/CustImg/FirstShipLogo.jpg') no-repeat center center;
    background-size: contain;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}


/*
.invoice-logo-fs {
    position: absolute;
    top: 15%;
    left: 75%;
    width: 160px;
    height: 160px;
    transform: translate(-15%, -75%);
    background: url('../images/CustImg/FirstShipLogo.jpg') no-repeat center center;
    background-size: contain;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}
 */
 

@media print {
    .invoice-logo-fs {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}


.inv-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.title-row {
    font-weight: bold;
    background-color: #b6d4fe;
    font-size: 14px;
}

.title-row-soa {
    font-weight: bold;
    font-size: 14px;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}

.opening-row {
    background-color: #f8f9fa !important;
    font-weight: bold;
    color: #333;
}

.lined-row {
    font-weight: bold;
    font-size: 14px;
    /*border-top: 1px solid lightgray;*/
    border-bottom: 1px solid black;
}

.total-row {
    font-weight: bold;
    background-color: #f2f2f2;
}

.address {
    text-align: left;
    margin: 0;
    padding-top: 2px;
}

.ac-name{
    font-size: 14px;
    font-weight: bold;
}

.comp-name {
    font-size: 20px;
    margin: 0;
    font-weight: bold;
}

.center-text {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.center-text h2 {
    font-size: 20px;
    margin: 0;
    margin-top: 10px;
}

.left-text {
    padding: 4px;
    text-align: left;
    font-size: 12px;
}

.right-text {
    padding: 4px;
    text-align: right;
    font-size: 12px;
}

.bold {
    font-weight: bold;
}

.horizontal-margin {
    margin: 10px 0;
}

.top-margin {
    margin-top: 10px;
}

.zero-tb{
    margin-top: 0;
    margin-bottom: 0;
}

.invoice-label{
    font-size: 16px;
    margin: 0;
    margin-top: 10px;
}

.hr-style {
    border: none;
    height: 1px;
    border-top: 2px solid black;
}


/*  Print Styles End */


/* Override default height of Syncfusion dropdowns */

.e-input-group.e-ddl {
    height: auto !important;
    min-height: 30px;
}


/* Voucher Styles Start */

.form-group {
    margin-bottom: 0.2rem;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: block;
}

label.e-float-text {
    margin-bottom: 10px;
    display: block;
}

.group {
    color: gray;
}

.name {
    padding-left: 10px;
}

.totalTaxable {
    background-color: lightgoldenrodyellow;
    color: darkgreen;
    font-size: large;
}

.totalTax {
    background-color: lightgoldenrodyellow;
    color: darkgreen;
    font-size: large;
}

.grandTotal {
    background-color: lightgoldenrodyellow;
    color: darkgreen;
    font-size: x-large;
}

.detail-row {
    border: 1px solid #ccc;
    padding: 5px;
    margin-top: 16px;
    border-radius: 5px;
    background-color: aliceblue;
}

.voucher-details {
    /*border: 1px solid #fff;*/
    padding: 20px;
    border-radius: 5px;
    /*background-color: white;*/
}

.remove-row {
    padding: 0;
}

/* Voucher Styles End */

.text-warning-dark {
    color: #b58900;
    font-style: italic;
    font-size: 14px;
}

#shareOptions a, #shareOptions button {
    margin-left: 0.5rem;
}

.invoice-footer {
    position: absolute;
    bottom: 25px;
    width: 100%;
    text-align: center;
    font-size: 11px;
    color: #888;
}

.invoice-printedInfo {
    position: absolute;
    bottom: 0px;
    width: 100%;
    text-align: left;
    font-size: 11px;
    color: #888;
}

.e-toast-container.e-toast-top-center {
    pointer-events: none;
    right: 0;
    top: 100px;
    width: 100%;
}

.help-img{
    max-width:100%;
    height:auto;
    display:block;
    border:1px solid #e5e7eb;
    border-radius:8px;
    box-shadow:0 1px 3px rgba(15,23,42,.08);
}

/* Match A4 printable width: 210mm - left(10) - right(10) = 190mm */
#helpdoc, #helpdoc * {
    max-width: 190mm;
    margin: 0 auto;
    content-visibility: visible !important;
}

/* Force a new page BEFORE this marker */
/* Force a new PDF page right here */
.page-break{
    display:block;
    height:0; margin:0; border:0; padding:0;
    /* both for different engines */
    break-before: page;
    page-break-before: always;
}

/* Safety gap so the next line won't be clipped */
.page-break::after{
    content:"";
    display:block;
    height:4mm;   /* 2–6mm usually works */
}

/* Prevent figures/images from splitting across pages */
.help-content figure,
.help-content img {
    break-inside: avoid;
    page-break-inside: avoid;
    display: block;
    max-width: 100%;
}

/* Keep blocks from splitting across pages */
.no-break,
figure, pre, code, blockquote, img, .card, .section {
    break-inside: avoid;            /* modern */
    page-break-inside: avoid;       /* legacy */
}

/* Keep headings with the content that follows */
h1, h2, h3 {
    break-after: avoid;
    page-break-after: avoid;
}

/* Optional: prevent HR from being cut in half */
hr {
    break-inside: avoid;
    page-break-inside: avoid;
}

@media print {
    /* Force page breaks using CSS (works with html2pdf pagebreak: 'css') */
    .page-break {
        break-before: page;
        page-break-before: always;
    }
    .e-dlg-overlay, .e-dialog, .e-spinner-pane, .e-toast { display: none !important; }
}

