/* VAT workspace specific tweaks */
.vat-section-title {
	font-weight: 700;
	font-size: 1.25rem;
	color: #008080;
	margin-bottom: 0.75rem;
}
.vat-card {
	border-radius: 14px;
	border: 1px solid #e5e5e5;
	background: #fff;
	padding: 18px 20px;
	margin-bottom: 20px;
}
.dropzone {
	border: 2px dashed #008080;
	border-radius: 14px;
	background: #f5fafa;
	padding: 20px;
	text-align: center;
	cursor: pointer;
	transition: 0.2s;
}
.dropzone.dragover {
	background: #e0f4f2;
	border-color: #00a99d;
}
/* Make Dropzone container cleaner */
.dropzone {
    border: 2px dashed #9cb0b9 !important;
    border-radius: 12px !important;
    background: #fafafa !important;
    min-height: 180px !important;
    padding: 25px !important;
}

/* Center message */
.custom-dz-message {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* The big icon */
.custom-dz-message .dz-icon {
    font-size: 48px;
    color: #008080; /* Yalla.Tax teal */
    margin-bottom: 10px;
}

/* Main text */
.custom-dz-message .dz-text {
    font-weight: 600;
    color: #444;
}

/* Subtitle */
.custom-dz-message .dz-subtext {
    font-size: 0.85rem;
    color: #777;
    margin-top: 4px;
}

/* Hide the default dropzone text */
.dropzone .dz-default.dz-message {
    display: none !important;
}

.vat-table thead th {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: .02em;
}
.vat-table td, .vat-table th {
	font-size: 0.85rem;
	vertical-align: middle;
}

.vat-table thead th {
    padding: 12px 16px !important;
}

.vat-table tbody td {
    padding: 14px 18px !important;
}


.status-pill {
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 0.7rem;
}
.status-manual { background:#e9ecef; color:#333; }
.status-pending { background:#fff3cd; color:#856404; }
.status-complete { background:#d4edda; color:#155724; }
.status-failed,.status-wrongperiod { background:#f8d7da; color:#721c24; }

.btn-disabled {
	background: #ccc !important;
	color: #666 !important;
	border: 1px solid #bbb !important;
	pointer-events: none;
}


.vat-box-grid {
	display:grid;
	grid-template-columns: repeat(4, minmax(0,1fr));
	gap: 12px;
}
@media (max-width: 991px){
	.vat-box-grid{ grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 575px){
	.vat-box-grid{ grid-template-columns: 1fr; }
}
.vat-box {
	border:1px solid #e3e3e3;
	border-radius:10px;
	padding:10px 12px;
	background:#fff;
}
.vat-box-label {
	font-size:0.8rem;
	color:#6c757d;
	margin-bottom:4px;
}
.vat-box-value {
	font-size:1rem;
	font-weight:600;
}
.vat-box-code {
	font-size:0.75rem;
	color:#999;
}

.dropzone {
    border: 2px dashed #008080;
    border-radius: 10px;
    background: #f8fafa;
    padding: 30px;
    text-align: center;
    cursor: pointer;
}

.dropzone .dz-message {
    font-size: 16px;
    color: #666;
}

.dz-preview .dz-remove {
    color: #ff4d4d;
    text-decoration: underline;
    cursor: pointer;
}

.background-highlight{
	background-color:#008080;
}

.border-highlight{
	border: 2px solid #008080 !important;
}

.form-control:disabled, .form-control[readonly] {
    background-color: #fff !important;
    opacity: 1;
}

.input-diagonal {
    background-image: repeating-linear-gradient(
        -45deg,
        #ffffff 0px,
        #ffffff 2px,
        rgba(0, 128, 128, 0.1) 2px,
        rgba(0, 128, 128, 0.1) 4px
    );
}

/******************** DROPDOWN ********************/
/* Base styling for Select2 selection (replaces your select box) */
.select2-container--default .select2-selection--single {
    height: 76px !important;
    border-radius: 14px !important;
    border: 2px solid #e0e4ea !important;
    padding: 10px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    color: #000 !important;
    background-color: #fff !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04) !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #000 !important;
}

/* Center the text */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    width: 100% !important;
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 28px !important; /* space for arrow */
}

/* Arrow icon */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 16px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #008080 transparent transparent transparent !important;
}

/* Focus state */
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default .select2-selection--single:focus {
    border-color: #008080 !important;
    box-shadow: 0 0 0 4px rgba(0, 128, 128, 0.12) !important;
}

/* Dropdown panel */
.select2-container .select2-dropdown {
    border-radius: 14px !important;
    border: 1px solid #e0e4ea !important;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.12) !important;
    overflow: hidden !important;
}

/* Dropdown options */
.select2-container--default .select2-results__option {
    padding: 20px 26px !important;
    font-size: 0.98rem !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #008080 !important;
    color: #fff !important;
}

.select2-container--default .select2-results__option--selected {
    background-color: rgba(0, 128, 128, 0.08) !important;
}

/* Always force dropdown to appear below */
.select2-container--open .select2-dropdown {
    top: 100% !important;
    bottom: auto !important;
}


.big-select {
    font-size: 1.2rem;
    height: 75px;
	width:100%;
    padding: 12px 16px;                 /* padding restored */
    border-radius: 15px;

    text-align: center !important;      
    text-align-last: center !important;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none !important;
}

/* Ensures options inside the dropdown are centered too */
.big-select option {
    text-align: center;
	padding:12px;
	cursor: hand;
}

/* Fix for Chrome shifting text on padding */
.big-select::-ms-expand {
    display: none;
}

/* Modern select inside modal */
#addCompanyModal .form-select {
    height: 50px;
    font-size: 1rem;
    border-radius: 12px;
    border: 1px solid #d7dbdf;
    padding: 10px 14px;
    background-color: #fff;
    transition: border-color .2s, box-shadow .2s;
}

/* Remove the harsh default arrow & replace with cleaner one */
#addCompanyModal .form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg fill='%23008080' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5.23 7.21a1 1 0 011.41 0L10 10.55l3.36-3.34a1 1 0 111.41 1.41l-4.06 4.06a1 1 0 01-1.41 0L5.23 8.62a1 1 0 010-1.41z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
}

/* Focus styling */
#addCompanyModal .form-select:focus {
    border-color: #008080;
    box-shadow: 0 0 0 3px rgba(0,128,128,0.15);
}

/* When disabled, fade + block interaction */
.workspace-disabled {
    position: relative;
    pointer-events: none;
    opacity: 0.45;
    filter: grayscale(20%);
}

/* The Select Company section stays active */
#companySelectorWrapper {
    pointer-events: auto !important;
    opacity: 1 !important;
    filter: none !important;
}

/* Make ONLY the invoice review modal wider */
#invoiceReviewModal .modal-dialog.xxl, #expenseReviewModal .modal-dialog.xxl {
    max-width: 95vw;   /* allow almost full viewport width */
    width: 95vw;
}

#invoiceReviewModal .modal-dialog.xl, #expenseReviewModal .modal-dialog.xl {
    max-width: 50vw;   /* allow almost full viewport width */
    width: 50vw;
}

/* Make the content taller and use the height better */
#invoiceReviewModal .modal-body, #expenseReviewModal .modal-body {
    max-height: calc(100vh - 140px); /* header+footer space */
    overflow-y: auto;
}

.btn-teal {
    background-color: #008080 !important;
    border: 1px solid #008080 !important;
    color: #fff !important;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 600;
    transition: 0.2s;
}

.btn-teal:hover {
    background-color: #006d6d !important;
    border-color: #006d6d !important;
}

/* STATUS BADGES */
.badge-approved {
    background-color: #00a65a;
    color: #fff;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.badge-pending {
    background-color: #ffca2c;
    color: #000;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

/* REVIEW BUTTON */
.btn-review {
    background-color: #008080 !important;
    color: #fff !important;
    border-radius: 10px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    transition: 0.2s;
}

.btn-review:hover {
    background-color: #006d6d !important;
}

/* OUTLINE VERSION WHEN APPROVED */
.btn-review-outline {
    background: #fff !important;
    color: #008080 !important;
    border: 2px solid #008080 !important;
}

.btn-review-outline:hover {
    background: #f0fdfd !important;
}

/* FLEX LAYOUT INSIDE APPROVED COLUMN */
.approved-wrapper {
    display: flex;
    justify-content: space-between;  /* spreads badge left + button right */
    align-items: center;
    width: 100%;
}

/* Base modern button */
.btn-modern {
    border-radius: 8px;
    font-weight: 600;
    padding: 6px 14px;
}

/* TEAL OUTLINE */
.btn-outline-teal-modern {
    @extend .btn-modern;
    border: 2px solid #008080;
    color: #008080;
    background: white;
	border-radius: 10px;
	padding: 15px 10px 15px 10px;
	font-weight: 600;
}

.btn-outline-teal-modern:hover {
    background: #008080;
    color: #fff;
}

/* RED OUTLINE (for Delete Invoice) */
.btn-outline-danger-modern {
    @extend .btn-modern;
    border: 2px solid #dc3545;
    color: #dc3545;
    background: white;
}

.btn-outline-danger-modern:hover {
    background: #dc3545;
    color: #fff;
}
input.currency-input.text-center {
    text-align: center !important;
}

input.currency-input {
    text-align: left !important;
}

.btn-icon-lg {
    background: none;
    border: none;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 1.2rem; /* Larger icons */
    line-height: 1;
}

.btn-icon-lg i {
    font-size: 1.2rem; /* Ensures big visible icons */
}

.btn-icon-lg:hover {
    background: #f2f2f2;
}

.btn-edit-adj i {
    color: #008080; /* Your Teal */
}

.btn-del-adj i {
    color: #d9534f; /* Your danger red or custom */
}

.ai-notes-box {
    display: block;
    width: 100%;
   /*  min-height: 120px; */
    padding: 10px;	

    border: 1px solid #ced4da;
    border-radius: 10px;

    background: #e8f7f9;

    white-space: pre-wrap;
    word-break: break-word;

    overflow: hidden; /* IMPORTANT: prevents scrollbar */
    resize: none;     /* user cannot grab edge */
    
    line-height: 1.4;
	    font-size: small;
}

.datepicker-dropdown{
	padding: 25px !important;
}

.datepicker .day{
	padding:10px !important;
}

.datepicker table tr td.today, .datepicker table tr td.today.disabled, .datepicker table tr td.today.disabled:hover, .datepicker table tr td.today:hover {
	background-color: #008080 !important;
	background-image: none !important;
	color: #fff !important;
}

.datepicker table tr td.active.active, .datepicker table tr td.active.disabled, .datepicker table tr td.active.disabled.active, .datepicker table tr td.active.disabled.disabled, .datepicker table tr td.active.disabled:active, .datepicker table tr td.active.disabled:hover, .datepicker table tr td.active.disabled:hover.active, .datepicker table tr td.active.disabled:hover.disabled, .datepicker table tr td.active.disabled:hover:active, .datepicker table tr td.active.disabled:hover:hover, .datepicker table tr td.active.disabled:hover[disabled], .datepicker table tr td.active.disabled[disabled], .datepicker table tr td.active:active, .datepicker table tr td.active:hover, .datepicker table tr td.active:hover.active, .datepicker table tr td.active:hover.disabled, .datepicker table tr td.active:hover:active, .datepicker table tr td.active:hover:hover, .datepicker table tr td.active:hover[disabled], .datepicker table tr td.active[disabled] {
    background-color: #008080a1 !important;
	background-image: none !important;
	color: #fff !important;
}

.datepicker table tr td.active, .datepicker table tr td.active.disabled, .datepicker table tr td.active.disabled:hover, .datepicker table tr td.active:hover {
	background-color: #008080a1 !important;
	background-image: none !important;
	color: #fff !important;
}

.datepicker table tr td span.active.active, .datepicker table tr td span.active.disabled, .datepicker table tr td span.active.disabled.active, .datepicker table tr td span.active.disabled.disabled, .datepicker table tr td span.active.disabled:active, .datepicker table tr td span.active.disabled:hover, .datepicker table tr td span.active.disabled:hover.active, .datepicker table tr td span.active.disabled:hover.disabled, .datepicker table tr td span.active.disabled:hover:active, .datepicker table tr td span.active.disabled:hover:hover, .datepicker table tr td span.active.disabled:hover[disabled], .datepicker table tr td span.active.disabled[disabled], .datepicker table tr td span.active:active, .datepicker table tr td span.active:hover, .datepicker table tr td span.active:hover.active, .datepicker table tr td span.active:hover.disabled, .datepicker table tr td span.active:hover:active, .datepicker table tr td span.active:hover:hover, .datepicker table tr td span.active:hover[disabled], .datepicker table tr td span.active[disabled] {
    background-color: #008080 !important;
	background-image: none !important;
	color: #fff !important;
}

.datepicker table tr td span.active, .datepicker table tr td span.active.disabled, .datepicker table tr td span.active.disabled:hover, .datepicker table tr td span.active:hover {
	background-color: #008080 !important;
	background-image: none !important;
	color: #fff !important;
}

.datepicker table tr td span.active.active, .datepicker table tr td span.active.disabled, .datepicker table tr td span.active.disabled.active, .datepicker table tr td span.active.disabled.disabled, .datepicker table tr td span.active.disabled:active, .datepicker table tr td span.active.disabled:hover, .datepicker table tr td span.active.disabled:hover.active, .datepicker table tr td span.active.disabled:hover.disabled, .datepicker table tr td span.active.disabled:hover:active, .datepicker table tr td span.active.disabled:hover:hover, .datepicker table tr td span.active.disabled:hover[disabled], .datepicker table tr td span.active.disabled[disabled], .datepicker table tr td span.active:active, .datepicker table tr td span.active:hover, .datepicker table tr td span.active:hover.active, .datepicker table tr td span.active:hover.disabled, .datepicker table tr td span.active:hover:active, .datepicker table tr td span.active:hover:hover, .datepicker table tr td span.active:hover[disabled], .datepicker table tr td span.active[disabled] {
    background-color: #008080 !important;
	background-image: none !important;
	color: #fff !important;
}

.datepicker table tr td span.active, .datepicker table tr td span.active.disabled, .datepicker table tr td span.active.disabled:hover, .datepicker table tr td span.active:hover {
	background-color: #008080 !important;
	background-image: none !important;
	color: #fff !important;
}

.vat-table-input{
	cursor: default;
	border:1px solid #efefef;
	border-radius:5px;
	padding:10px;
}

.vat-section {
    border-left: 6px solid #008080;   /* teal */
    padding-left: 0px;
    border-radius: 20px;
    margin-top: 30px;
}

.vat-section.profile { border-left-color: #009999; }
.vat-section.sales { border-left-color: #006d6d; }
.vat-section.expenses { border-left-color: darkorange; }
.vat-section.adjustments { border-left-color: #805ad5; }
.vat-section.summary { border-left-color: #444; }

.section-header-band {
    background: #f1f4f7;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.vat-section.profile .vat-card { 
    background: linear-gradient(to bottom, #ffffff, #e7f7f7);
}

.vat-section.sales .vat-card { 
    background: linear-gradient(to bottom, #ffffff, #e9f5f5); 
}
.vat-section.expenses .vat-card  { 
    background: linear-gradient(to bottom, #ffffff, #fff5e8); 
}
.vat-section.adjustments .vat-card  { 
    background: linear-gradient(to bottom, #ffffff, #f5efff); 
}
.vat-section.summary .vat-card  { 
    background: linear-gradient(to bottom, #ffffff, #f4f4f4); 
}

.section-divider {
    border-top: 2px solid #e4e4e4;
    margin: 50px 0 30px 0;
}

.section-icon {
    background: #008080;
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    margin-right: 10px;
}

#vat-table-income,
#vat-table-expenses,
#vat-table-net {
    table-layout: fixed;
}

.vat-table-input {
    width: 100%;
    box-sizing: border-box;
}

#apportionmentRateBox {
    border-left: 4px solid #008080;
    background: #f8fdfd;
    border-radius: 6px;
}

.background-transparent{
	background-color: transparent !important;
}

.company-profile-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px !important;
    border-left: 5px solid #008080; /* Teal accent */
}

/* Header band */
.section-header-band {
    font-size: 1.25rem;
    font-weight: 700;
    color: #008080;
    padding: 6px 14px;
    border-left: 4px solid #008080;
}

/* Edited button */
.btn-edit-company {
    border: 2px solid #008080;
    color: #008080;
    font-weight: 600;
    border-radius: 8px;
    transition: 0.2s;
}

.btn-edit-company:hover {
    background: #008080;
    color: #fff;
}

/* Field labels */
.label-text {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #7a7a7a;
    letter-spacing: 0.5px;
}

/* Field values */
.value-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    margin-top: 2px;
}

/* Highlight field */
.value-text.highlight {
    color: #008080;
}
