body {
    background-color: #FFFFFF; /* Primary background: White */
    color: #222222; /* Primary text: Black (or very dark gray) */
    margin: 0;
    padding: 0;
    display: flex;
    height: 100vh;
    /* background-image: url('background-pattern.png');  */
    background-size: cover;
    direction: rtl;
    /* Right-to-left layout for Persian */
    font-weight: 400 !important;
    justify-content: center;
    font-size: 16px; /* More stable base font size */
    line-height: 1.6; /* Improved default line height for readability */
    align-items: center;
}

/* Responsive base font size adjustments (optional, but good practice) */
@media (min-width: 768px) {
    body {
        /* font-size: 17px; Slightly larger on tablets and up */
    }
}

@media (min-width: 1024px) {
    body {
        /* font-size: 18px; Slightly larger on desktops */
    }
}

body *,
input {
    font-family: "Baloo Bhaijaan 2"; /* Ensure this is the base font */
}


/* Removed duplicate body selector and consolidated its unique properties if any (background-size was the only one) */
/* body { (Removed)
    background-size: cover; (Moved to main body if still needed, or managed by other background properties)
} */


.app {
    max-width: 600px; /* Retaining this, but consider if it's too narrow */
    width: 100%; /* Ensure it takes full width up to max-width */
    padding: 1.5em; /* Consistent em-based padding */
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Contains floats and prevents margin collapse issues */
    box-sizing: border-box; /* Ensure padding doesn't add to width */
}

button {
    display: flex;
    align-items: center;
    padding: 0.7em 1.2em; /* Modernized padding */
    margin: 0.5em 0; /* Standardized margin */
    background: #B8860B; /* Accent color: Dark Gold */
    border: none;
    color: #FFFFFF; /* Text on accent: White */
    cursor: pointer;
    border-radius: 8px; /* Modernized border-radius */
    font-size: 16px; /* Base font size, can be 1em if parent font size is consistent */
    font-weight: 500; /* Slightly bolder text */
    text-decoration: none; /* Ensure no underlines */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* Subtle shadow */
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

button:hover {
    background-color: #C4911A; /* Lighter gold on hover */
    box-shadow: 0 2px 6px rgba(0,0,0,0.15); /* Enhanced shadow on hover */
    transform: translateY(-1px); /* Slight lift on hover */
}

button:active {
    background-color: #A07409; /* Darker gold on active */
    box-shadow: 0 1px 1px rgba(0,0,0,0.1); /* Flatten shadow on active */
    transform: translateY(0px); /* Back to base or slight press effect */
}

#modal-text {
    font-weight: bold;
    font-size: 1.5em; /* Larger modal title */
    margin: 0 0 1em 0; /* Space below title */
    text-align: center;
    color: #222222; /* Ensure primary text color */
}

#modal-form {
    display: flex;
    width: 100%;
    flex-direction: column;
    padding-top: 0em;
}

#mealsContainer {
    /* gap: 10px; */
    width: 100%;
    display: flex;
    flex-direction: column;
}

#loader {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    font-size: 24px;
    color: #222222; /* Primary text: Black */
}

.form-group {
    margin-bottom: 1.5em; /* Increased spacing */
}

.styled-form label {
    font-size: 1em; /* Consistent font size with body */
    font-weight: 600; /* Bolder labels */
    /* padding-top: 0px; (already 0) */
    /* height: auto; Removed fixed height */
    margin-bottom: 0.5em; /* Space below label */
    display: block;
    color: #333333; /* Ensure strong text color */
}

.styled-form input[type="text"],
.styled-form input[type="number"] {
    width: 100%;
    padding: 0.75em 1em; /* Modernized padding */
    margin: 0px 0 0 0;
    box-sizing: border-box;
    border: 1px solid #AAAAAA; /* Neutral darker gray border for inputs */
    border-radius: 8px; /* Modernized border-radius */
    font-size: 1em; /* Consistent font size */
    line-height: 1.5; /* Comfortable line height */
    transition: border-color 0.2s, box-shadow 0.2s;
}

.styled-form input[type="text"]:focus,
.styled-form input[type="number"]:focus {
    border-color: #B8860B; /* Accent color border on focus */
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15); /* Accent color shadow on focus */
    outline: none;
}



/* Loader animation */
.loader {
   width: 3.2em;
   height: 3.2em;
   display: flex;
   animation: 1500ms linear 0ms infinite normal none running swal2-rotate-loading;
   border-width: 0.8em;
   border-style: double;
   margin: 0 auto;
   border-radius: 100%;
   border-color: #b8860b rgba(0, 0, 0, 0) #0a0a0a rgba(0, 0, 0, 0);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Mobile-friendly layout adjustments */
#app {
    padding: 10px;
    width: 100vw;
    text-align: center;
    min-width: 70vw;
    box-sizing: inherit;
}

#app h1 {
    width: 100%;
    font-size: 1.5em;
}

button {
    display: flex;
    width: 100%;
    text-align: center;
    gap: 10px;
    padding: 10px;
    font-size: 1em;
    margin: 5px 0;
    align-items: center;
    justify-content: flex-start;
}
.car-details .button:active {
    border-color: transparent;
    color: #fff;
}

.styled-form button {
    display: flex;
    gap: 43px;
    align-content: space-between;
    justify-content: space-between;
    flex-direction: column;
    flex-wrap: nowrap;
    background: #B8860B; /* Accent color: Dark Gold */
}


button img {
    width: 20px;
    height: 20px;
}

/* Styled forms */
.styled-form {
    display: flex;
    flex-direction: column;
}

.styled-form input,
.styled-form button {
    width: 100%;
    padding: 8px;
    margin-top: 8px;
    font-size: 1em;
}

.styled-form fieldset {
    border: 1px solid #DDDDDD; /* Lighter border */
    padding: 1.5em; /* Increased padding */
    margin: 1.5em 0; /* Increased margin for separation, or keep 1em if too much */
    border-radius: 8px; /* Consistent border-radius */
}

/* Existing styles remain the same */

button.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.quantity-input {
    width: 50px;
    text-align: center;
    margin: 10px 0;
}

.meal-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.meal-option>p {
    font-weight: bold;
    margin: 0;
}

a {
    color: #B8860B; /* Accent color: Dark Gold */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #A07409; /* Darker gold on hover */
}


.panels {
    padding-right: 6px;
    margin-right: 16px;
    border-right: 2px dashed #B8860B; /* Accent color: Dark Gold */
    margin-top: 19px;
    line-height: 2px;
    margin-bottom: 11px;
}

/* Ensure uniform sizing for form controls */
.select.is-fullwidth,
.input {
    width: 100% !important;
}

button.modal-close{
    background-color: rgba(40, 40, 40, 0.8) !important; /* Cleaner semi-transparent background */
    border-radius: 50%; /* Circular close button */
    /* box-shadow: none; Removed custom shadow for a flatter look */
    transition: background-color 0.2s;
}

button.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.9) !important; /* Darker on hover */
}

/* Styling for the .box inside a .modal, assuming this is the main modal panel */
.modal .box {
    border-radius: 12px; /* Softer, modern radius */
    box-shadow: 0 8px 24px rgba(0,0,0,0.15); /* Modern elevation shadow */
    padding: 2rem; /* More generous padding, if needed over Bulma's default 1.25rem */
    opacity: 0;
    transform: scale(0.90) translateY(10px); /* Slightly more noticeable initial transform */
    transform-origin: center; /* Ensure scaling happens from the center */
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

.modal.is-active .box { /* Style when modal is active */
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Car button style for car list in modal */
.car-btn {
    display: flex;
    flex-direction: row;
    width: 100%;
    text-align: right;
    gap: 0.5em;
    padding: calc(.5em - 1px) .5em;
    margin-bottom: 0.5em;
    border-radius: 6px;
    /* Remove border and background, let Bulma handle */
    /* box-shadow: none; */
    flex-wrap: wrap;
    align-items: center;
    background-color: #B8860B; /* Accent color: Dark Gold */
    border-color: transparent;
    color: #FFFFFF; /* Text on accent: White */
    justify-content: space-between;
    z-index: 2;
}
.car-btn:hover,.car-btn:focus{
    border-color: transparent;
    color: #FFFFFF; /* Text on accent: White */
    justify-content: space-between;
    box-shadow: none !important;
    background-color: #A07409; /* Darker Gold for hover/focus */
}
.car-btn > span:first-child {
  display: inline-block;    /* required so clientWidth reflects actual element width */
  white-space: nowrap;      /* prevent wrapping */
  max-width: 30%;           /* your width constraint */
  overflow: hidden;         /* hide any residual overflow */
  font-size: .7em;           /* base size */
}
.car-btn .car-btn-chassi{
    display: flex;
    flex-direction: column;
    font-size:.7em;
    align-items: center;
    margin-top: calc(-0.25em - 1px);
}

.sale-condition-btn:focus{
    box-shadow: none !important;
}

div:where(.swal2-container) h2:where(.swal2-title){
    font-size: 5vw !important;
}
.card.orderable-car-card{
    margin-bottom:1rem;
    background: transparent;
    border: none;
    /* border-radius: 8px; */
    box-shadow: unset;
}
.card.orderable-car-card .card-header{
    background-color: #222222; /* Black/Dark Gray for card headers */
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease-in-out;
    height: 2.5rem;
    padding-top: .3rem;
    z-index: 10;
}
.card.orderable-car-card .card-header .card-header-title{color:#FFFFFF;font-weight: 400;font-size: 1.25rem;padding: .25rem 1rem;text-align: center;display: flex;justify-content: flex-end;}

.card.orderable-car-card .card-header:hover {
    background-color: #333333; /* Slightly lighter on hover */
}

.is-hidden {
    display: none !important;
}

.sale-conditions-container {
    display: flex;
    flex-direction: column;
}

.sale-conditions-container .notification{
    padding: .75rem 0.5rem;
    text-align: justify;
    text-wrap-style: auto;
    font-size: .7em;
}

.sale-conditions-container > p{
    font-size: small;
    text-align: center;
}

.sale-condition-btn {
    font-size: 1.1em;
    font-weight: 400;
    border-radius: 6px;
    transition: background 0.2s;
    margin-bottom: .25rem!important;
    padding: 0;
    border: 2px solid #B8860B; /* Accent color: Dark Gold */
    color: #B8860B; /* Accent color: Dark Gold for text */
    background-color: #FFFFFF; /* Primary background: White for outlined button */
    height: 2em;
    display:flex;
    justify-content: space-evenly;
}
.sale-condition-btn span{
    display:flex;
}

.sale-condition-btn:not(:last-child) {
    margin-bottom: 0.5em;
}

.sale-condition-detail-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    background: #FFFFFF; /* Primary background: White */
}

.sale-cond-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sale-cond-details-list li {
    margin-bottom: 0.5em;
    font-size: 1.05em;
}


/* Pro-level styles for the sale condition details card and its elements */
.pro-sale-cond-card {
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10), 0 1.5px 8px rgba(0,0,0,0.04); /* Adjusted shadow to be more neutral */
    background: #FFFFFF; /* Primary background: White */
    border: 1.5px solid #dddddd; /* Lighter border */
    margin: 0 auto;
    max-width: 420px;
    font-family: 'Vazirmatn', 'IRANSans', 'Tahoma', sans-serif;
}

.pro-sale-cond-content {
    padding: 1.25em 1.5em 1.5em 1.5em;
}

.pro-sale-cond-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65em;
}

.pro-sale-cond-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.08em;
    padding: 0.18em 0.1em;
    border-radius: 6px;
    transition: background 0.2s;
}

.pro-sale-cond-list li:not(.pro-date-row):hover {
    background: #FFF8E1; /* Light Gold/Cream for hover */
}

.pro-label {
    font-weight: 600;
    color: #B8860B; /* Accent color: Dark Gold */
    min-width: 110px;
    text-align: right;
    letter-spacing: 0.01em;
}

.pro-value {
    font-weight: 500;
    color: #222222; /* Primary text: Black */
    text-align: left;
    direction: ltr;
    unicode-bidi: plaintext;
}

.pro-date-row {
    text-align: left;
    font-size: 0.93em;
    margin-top: 0.7em;
    color: #555555 !important; /* Darker gray for dates */
    font-style: italic;
    justify-content: flex-end;
}

/* .pro-sale-cond-card rule is duplicated and simplified above, removing this one. */


.pro-sale-cond-content {
    padding: 1.5rem;
}

.pro-sale-cond-columns {
    gap: 1rem;
}

/* .pro-label is already styled above, this is a duplicate or override. Consolidating. */
/* .pro-label {
    font-weight: 600;
    color: #B8860B;
} */

.pro-value { /* Ensure this refers to the same .pro-value as above or is a specific variant */
    font-weight: 400; /* Potentially overridden by the .pro-value above if more specific */
    color: #222222; /* Primary text: Black */
}

.pro-date-row { /* Ensure this refers to the same .pro-date-row as above */
    text-align: right;
    font-size: 0.85rem;
}

/* Minimal, modern styles for the details table */
.pro-sale-cond-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  font-size: 1.08em;
  margin-bottom: 0;
}

.pro-sale-cond-table th,
.pro-sale-cond-table td {
  padding: 0.55em 0.7em;
  text-align: right;
  vertical-align: middle;
  border: none;
}

.pro-sale-cond-table th {
  color: #B8860B; /* Accent color: Dark Gold */
  font-weight: 700;
  background: none;
  width: 38%;
  white-space: nowrap;
}

.pro-sale-cond-table td {
  color: #222222; /* Primary text: Black */
  font-weight: 400;
  background: none;
}

.pro-sale-cond-table tr:not(.pro-sale-cond-desc-row):not(.pro-sale-cond-date-row) {
  border-bottom: 1px solid #eeeeee; /* Lighter border */
}



.pro-sale-cond-date-row td {
  text-align: left;
  color: #555555; /* Darker gray for dates */
  font-size: 0.93em;
  padding-top: 0.5em;
  padding-bottom: 0.2em;
  border: none;
}

.pro-sale-cond-card {
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(33, 150, 243, 0.10), 0 1.5px 8px rgba(0,0,0,0.04);
    background: #FFFFFF; /* Primary background: White */
    overflow: hidden;
}


.pro-sale-cond-content {
    padding: 1.5rem;
}

.pro-sale-cond-columns {
    gap: 0.75rem;
}

.pro-label {
    font-weight: 600;
    color: #B8860B; /* Accent color: Dark Gold */
    display: block;
    margin-bottom: 0.25rem;
}

/* .pro-value is styled above, this is a duplicate or override. Consolidating. */
/* .pro-value {
    font-weight: 400;
    color: #222222;
} */

.pro-sale-cond-desc {
    background: #FFF8E1; /* Light Gold/Cream */
    color: #222222; /* Primary text: Black */
    font-style: italic;
    padding: 1rem;
    border-radius: 8px;
    text-align: justify;
    font-size: 1em;
}

.pro-sale-cond-date {
    text-align: left;
    color: #555555; /* Darker gray for dates */
    font-size: 0.93em;
    padding-top: 0.5em;
}

/* New card design styles */
.pro-sale-cond-card {
    border-radius: 14px;
    box-shadow: 0 4px 4px rgba(0,0,0,0.05), 0 1.5px 8px rgba(0,0,0,0.07); /* Softer neutral shadow */
    background: #FFFFFF; /* Primary background: White */
    overflow: hidden;
    text-align: center;
}


.pro-sale-cond-header {
    background-color: #222222; /* Primary text: Black (as background) */
    padding: .3rem;
    color: #FFFFFF; /* Text on Black background: White */
}



.pro-sale-cond-details {
    padding: 1.5rem;
}


.pro-detail-item {
    align-items: center;
}

.pro-detail-label {
    color: #FFFFFF; /* Text on Accent: White */
    font-weight: 600;
    width: 3em;
    display: flex;
    height: 100%;
    border:  unset;
    border-color: #A07409; /* Darker gold for borders if needed */
    font-size: .9em;
    line-height: 1.2em;
    background-color: #B8860B; /* Accent color: Dark Gold */
    align-content: center;
    justify-content: center;
    flex-direction: column;
    writing-mode: vertical-rl;
    align-items: center;
}

.pro-sale-cond-details {
    padding: 1.5rem;
}

.pro-sale-cond-columns {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    align-content: flex-start;
}
.pro-sale-cond-columns>.column.is-fullwidth{
    width: 100%;
    display: block;
}

.pro-detail-item, .pro-detail-description {
    display: flex;
    padding: 0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: #222222; /* Primary text: Black */
    height: 4rem;
    overflow: hidden;
    flex-direction: row;
    flex-wrap: nowrap;
    border: 2px solid #B8860B; /* Accent: Dark Gold */
    align-content: center;
    justify-content: center;
}
.pro-detail-description {
    background: unset;
    display: flex;
    text-align: justify;
    direction: rtl;
    padding: 0;
    line-height: 100%;
    width: 100%;
    height: auto;
    border:  none;
    border-radius:  0;
    border-right: 6px dashed #B8860B; /* Accent: Dark Gold */
    border-right-style: double;
}

.pro-detail-description > pre{
        padding: 0 .5rem .5rem 0;
        width: 100%;
        text-wrap-mode: wrap;
        text-wrap-style: inherit;
        background-color: transparent; /* Should inherit body background (White) */
}

.pro-detail-value{
     padding: 0;
     background: unset; /* Should inherit body background (White) */
     width: 100%;
     color: #222222; /* Primary text: Black */
     line-height: 60%;
     font-size: 1.5em;
}
.pro-detail-value small{
         text-wrap-mode: nowrap;
         color: #B8860B; /* Accent: Dark Gold for small text */
         font-size: .7rem;
         padding-right: 4px;
         font-weight: 900;
}
.car-detail-box{
    margin-top:-1rem;
    width: 95%;
    display: flex;
    flex-direction: column;
    margin-bottom: .25rem;
    z-index: 1;
}

.orderable-car-card .card-header-icon{
    color: #ffffffd1;
    height: 117%;
}

.car-details{
    width: 96%;
    background: #f0f0f0; /* Light gray background for details section */
    border: 1.5px solid #dddddd; /* Lighter border */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Softer shadow */
    margin: -6px 2% 0 0;
    position: relative;
    z-index: 9;
}

.car-details > div{
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
}

.sale-cond-container {
    text-align:right;
}

.sale-cond-container .pro-sale-cond-header span{
    color: #FFFFFF; /* Text on Black background: White */
    text-align:center;
    display:block;
}

.list-grid .card .content > span:first-child{   
    text-align: center;      
    width: 100%;    
    display: flex;    
    justify-content: center;
}

.filter-buttons{
    display:flex;
}
.filter-buttons .buttons{
    width:100%;
}
.filter-buttons .buttons .button{
    width: 47.5%;
    display: flex;
}
.filter-buttons .buttons .button:not(:last-child):not(.is-fullwidth){
    margin-right: 0;
    margin-left: 5%;
}
.list-grid .tags{
    
justify-content: center;
}

/* Minimal styles for clickable cards and document list */
.advanced-orderable-card.is-clickable {
    cursor: pointer;
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
    transform: scale(1); /* Base state for transform */
}

.advanced-orderable-card.is-clickable:hover {
    box-shadow: 0 6px 14px rgba(0,0,0,0.12), 0 0 0 2px #B8860B; /* Enhanced shadow + outline */
    transform: scale(1.02); /* Slight scale on hover */
    outline: none;
}

.advanced-orderable-card.is-clickable:focus {
    box-shadow: 0 0 0 2px #B8860B; /* Accent: Dark Gold for focus outline */
    outline: none;
    /* Consider adding a slight scale on focus too if desired: transform: scale(1.01); */
}

.document-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}
.document-card {
    background: #FFFFFF; /* Primary background: White */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* Neutral shadow */
    padding: 1rem;
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.document-img {
    max-width: 100%;
    border-radius: 6px;
    border: 1px solid #dddddd; /* Lighter border */
}

.document-card .remove-payment-receipt-btn {
    top: 20px !important;
    right: 20px !important;
}

.document-list figure{
    width: 100%;
    height: auto;
    max-height:unset;
}

.button[disabled], fieldset[disabled] .button {
    background-color: #cccccc; /* Light gray for disabled */
    border-color: #cccccc; /* Light gray for disabled */
    color: #666666; /* Darker gray text for disabled */
    box-shadow: none;
    opacity: 0.7; /* More opaque for better visibility of text */
}

.pro-sale-cond-description{
    width: 100%;
    height: auto;
    display: block;
}

.pro-sale-cond-description > pre {
    background: unset; /* Inherit from parent, likely white */
    display: flex;
    text-align: justify;
    direction: rtl;
    padding: 0 1.5rem;
    text-wrap-mode: wrap;
    font-size: .70em;
    line-height: 100%;
    width: 100%;
    height: auto
}

.sale-condition-detail-card .pro-sale-cond-description > pre { /* This is styling pre within a specific card */
    display: flex;
    flex-direction: column;
    padding-bottom: 1.5rem;
    background-color: transparent; /* Explicitly transparent */
    color: #222222; /* Ensure text color is primary text color */
}

#add-sale-cond-modal-label {
    text-align: right !important;
    direction: rtl;
    display: block;
}

/* Right-align labels within the add sale condition modal form */
#addSaleConditionForm .label {
    text-align: right;
}

.simple-rte-toolbar{

display: flex;

flex-wrap: nowrap;

margin-bottom: 0 !important;
}
.simple-rte-toolbar.buttons .button{
    margin-bottom: 0;
}

.remove-prepayment-part-btn{
    margin-top: 0;
    border: none;
    padding: 0;
}

.textarea{
    text-align: right;
    padding: 0.75em 1em; /* Consistent padding */
    border: 1px solid #AAAAAA; /* Consistent border */
    border-radius: 8px; /* Consistent border-radius */
    font-size: 1em; /* Consistent font-size */
    line-height: 1.5; /* Consistent line-height */
    color: #222222; /* Ensure text color is primary text */
    transition: border-color 0.2s, box-shadow 0.2s;
}

.textarea:focus {
    border-color: #B8860B; /* Accent color border on focus */
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15); /* Accent color shadow on focus */
    outline: none;
}

/* Styles for confirm/decline buttons in document Swal */
.swal2-actions {
    width: 100%;
    flex-direction: column;
    padding: 0 4vw;
    align-content: center;
}

.swal2-confirm,
.swal2-cancel,
.swal2-deny{
    flex: 1; /* Allow buttons to grow and shrink */
    /* max-width: 150px; */ /* Optional: limit max width */
    border-radius: 8px !important; /* Rounded corners */
    padding: 10px 15px !important;
    font-size: 1.5em !important;
    /* font-weight: bold !important; */
    transition: transform 0.1s ease-in-out;
    position: relative; /* Needed for animation border */
    overflow: hidden; /* Hide overflowing animation border */
    /* min-height: 100px; */
}

div:where(.swal2-container) div:where(.swal2-loader) {
    display: none;
    align-items: center;
    justify-content: center;
    width: 3.2em;
    height: 3.2em;
    margin: 0;
    animation: 1500ms linear 0ms infinite normal none running swal2-rotate-loading;
    border-width: 0.8em;
    border-style: double;
    border-radius: 100%;
    border-color: #b8860b rgba(0, 0, 0, 0) #0a0a0a rgba(0, 0, 0, 0);
}

.swal2-confirm {
    background-color: #B8860B !important; /* Accent: Dark Gold */
    border-color: #B8860B !important; /* Accent: Dark Gold */
    color: #FFFFFF !important; /* Text on Accent: White */
}

.swal2-cancel, .swal2-html-container button.is-danger, .swal2-deny-custom {
    background-color: transparent !important; /* Standard cancel red - keeping for semantics */
    border-color: transparent !important; /* Standard cancel red */
    color: #d33 !important; /* Text on Accent: White */
}

/* Hold-down animation */
.hold-animation {
    transform: scale(1.05); /* Slightly bigger on press */
}

.hold-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    box-sizing: border-box;
    animation: hold-progress 2s linear forwards;
}

@keyframes hold-progress {
    0% {
        clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%, 100% 100%, 100% 0%, 0% 0%);
    }
    25% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 100%, 100% 100%, 100% 0%, 0% 0%);
    }
    50% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 100% 100%, 100% 100%, 100% 0%, 0% 0%);
    }
    75% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 100%, 100% 0%, 0% 0%);
    }
    100% {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%, 100% 0%, 0% 0%);
    }
}

/* Ensure the decline reason field is hidden by default */
#decline-reason-field {
    display: none;
}

/* Responsive adjustments for filter buttons */
@media (max-width: 480px) {
    .filter-buttons .buttons {
        flex-direction: column; /* Stack buttons vertically */
    }

    .filter-buttons .buttons .button {
        width: 100%; /* Make buttons full width */
        margin-left: 0 !important; /* Remove left margin if it was from :not(:last-child) */
        margin-bottom: 0.5em; /* Add some space between stacked buttons */
    }

    .filter-buttons .buttons .button:not(:last-child):not(.is-fullwidth) {
        margin-right: 0; /* Remove right margin from the original rule */
    }

    div:where(.swal2-container) h2:where(.swal2-title){
        font-size: 1.5em; /* Reduce SweetAlert title size on small screens */
    }
}

/* Style for the decline reason textarea */
#decline-reason-input {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
    resize: vertical; /* Allow vertical resizing */
}
.document-list > .document-card{
    position:relative
}
.document-card > .buttons
{
    position: absolute;
    bottom: 1rem;
    left: 1.5rem;
    margin-bottom: 0;
    padding: 0;
}
.document-card > .buttons button{
    border-color: #946c00 !important;
    background: #946c003b !important;
    border-radius: 500px;
    width: 10vw;
    height: 10vw;
    opacity: 70%;
}

/* Header Logo Styles */
.header-container {
    /* display: flex; // Already set, but ensure it's column for h1 only */
    /* align-items: center; // Already set */
    /* justify-content: center; // Already set */
    /* margin-bottom: 1rem; // Already set */
    flex-direction: column;
    /* margin-top: 100px; */ /* This will be controlled by #logo-main's height */
}

/* Remove styles for the old logo location if any specific were targeting it */
/* .header-container img { */
    /* width: 50vw; */ /* Old style */
    /* margin-bottom: 50px; */ /* Old style */
/* } */

.header-container h1 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 600;
    color: #222222;
}

#admin-interface,
#user-interface {
    padding: 1em 0;
    margin-bottom: 1em;
}

#admin-interface:empty,
#user-interface:empty {
    display: none;
}


button {
    display: flex;
    align-items: center;
    padding: 0.7em 1.2em; /* Modernized padding */
    margin: 0.5em 0; /* Standardized margin */
    background: #B8860B; /* Accent color: Dark Gold */
    border: none;
    color: #FFFFFF; /* Text on accent: White */
    cursor: pointer;
    border-radius: 8px; /* Modernized border-radius */
    font-size: 16px; /* Base font size, can be 1em if parent font size is consistent */
    font-weight: 500; /* Slightly bolder text */
    text-decoration: none; /* Ensure no underlines */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* Subtle shadow */
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

button:hover {
    background-color: #C4911A; /* Lighter gold on hover */
    box-shadow: 0 2px 6px rgba(0,0,0,0.15); /* Enhanced shadow on hover */
    transform: translateY(-1px); /* Slight lift on hover */
}

button:active {
    background-color: #A07409; /* Darker gold on active */
    box-shadow: 0 1px 1px rgba(0,0,0,0.1); /* Flatten shadow on active */
    transform: translateY(0px); /* Back to base or slight press effect */
}


a {
    color: #B8860B;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #A07409;
}


.panels {
    padding-right: 6px;
    margin-right: 16px;
    border-right: 2px dashed #B8860B;
    margin-top: 19px;
    line-height: 2px;
    margin-bottom: 11px;
}


.sale-condition-btn {
    font-size: 1.1em;
    font-weight: 400;
    border-radius: 6px;
    transition: background 0.2s;
    margin-bottom: .25rem!important;
    padding: 0;
    border: 2px solid #B8860B;
    color: #B8860B;
    background-color: #FFFFFF;
    height: 2em;
    display:flex;
    justify-content: space-evenly;
}


.pro-detail-label {
    background-color: #B8860B; /* Dark Gold */
    color: #ffffff; /* White text */
    font-weight: 600;
    /* padding: 0.5em 0.75em; */
    /* width: 8em; */ /* Example fixed width */
    display: flex;
    align-items: center;
    justify-content: center; /* Center text for horizontal labels */
    border-right: 1px solid #A07409; /* Separator if label is on left */
    text-align: center;
    /* writing-mode, text-orientation, flex-direction: column removed for horizontal labels */
}
/* Specific styling for Total Price */
.pro-detail-item.is-total-price {
    background-color: #FFF8E1;
    border-color: #B8860B;
}

.pro-detail-item.is-total-price .pro-detail-label {
    /* background-color: #A07409; */
}

.pro-detail-item.is-total-price .pro-detail-value {
    font-size: 1.4em;
    font-weight: 700;
    color: #B8860B;
    justify-content: center;
}

.pro-sale-cond-description {
    padding: 1rem 1.5rem;
    background-color: #f9f9f9;
    color: #363636;
    border-top: 1px solid #efefef;
    margin: 0;
    text-align: justify;
    font-size: 0.9em;
    border-radius: 0;
}


.pro-sale-cond-description pre {
    white-space: pre-wrap;
    color: inherit;
    background-color: transparent;
    padding:0;
    font-family: inherit;
}

.pro-sale-cond-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #efefef;
    background-color: #fdfdfd;
}

.button.is-primary, .tag:not(body).is-primary{
    background-color: #B8860B;
}

.button.is-primary:hover, .tag:not(body).is-primary:hover, 
.button.is-primary:active, .button.is-primary.is-active{
    background-color: #A07409 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

button.button.is-danger.is-light.is-borderless {
    background: transparent;
}

.button.is-for-adding {
    font-weight: bold;
    background-color: transparent;
    border: 2px solid;
    color: #B8860B;
}

.swal2-rtl .swal2-close{justify-content: normal;margin-bottom: -.8em;border: none;box-shadow: 0 0 transparent !important;color: #ab8831;font-weight: 600;width: 100%;margin-right: 5em !important;padding: 0 10px 0 0;}

/* New styles for fixed logo */
#logo-main {
    position: relative;
    width: 100%;
    height: 100px; /* Adjusted height for the spacer */
    display: flex;
    justify-content: center;
}

#main-logo-image {
    position: fixed;
    top: 10px;       /* Space from top */
    left: 50%;
    transform: translateX(-50%);
    width: 40vw;     /* Relative width */
    max-width: 160px; /* Max width to prevent it from being too large */
    height: auto;    /* Maintain aspect ratio */
}
