/* Invoice Sidebar */

.invoice-sidebar {
    min-width: 20%;
}

.downloadButton {
    background-color: var(--download-button);
    color: white;
    border: none;
    font-size: larger;
    height: 50px;
    width: 100%;
    cursor: pointer;
    font-family: sans-serif;
    border-radius: 10px;
}

.downloadButton:hover {
    background-color: var(--download-hover);
}

.sidebar-line {
    height: 1px;
    background-color: var(--muted-text-colour);
    width: 100%;
    margin-left: 0rem;
    margin-right: 0rem;
    margin-bottom: 0.5rem;
}
.sidebar-colour-options {
    margin-bottom: 20px;
}

.colour-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.colour-option-button {
    height: 34px;
    border: 1px solid var(--border-lines);
    border-radius: 4px;
    cursor: pointer;
    border-radius: 8px;
}

.custom-colour-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.custom-colour-row label {
    font-size: 1rem;
}

#customColourPicker {
    width: 100%;
    height: 40px;
    margin-top: 0;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    cursor: pointer;
}

#customColourPicker::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 8px;
}

#customColourPicker::-webkit-color-swatch {
    border: none;
    border-radius: 8px;
}

#customColourPicker::-moz-color-swatch {
    border: none;
    border-radius: 8px;
}

.custom-percent-input {
    position: relative;
    width: 6.2rem;
    height: 2rem;
}

.custom-percent-input input {
    width: 100%;
    padding-right: 1.8rem;
    padding-left: 0.4rem;
    height: 100%;
    box-sizing: border-box;
    font-size: 0.9rem;
}

.custom-spinner {
    position: absolute;
    right: 0.1rem;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.custom-spinner button {
    background: transparent;
    border: none;
    font-size: 0.65rem;
    line-height: 1;
    padding: 0;
    width: 1.4rem;
    cursor: pointer;
    color: var(--muted-text-colour);
    height: 50%;
}

.sidebar-download {
    margin-bottom: 1rem;
}

.taxType {
    background: var(--card-selection);
    color: var(--text-colour);
    border: 1px solid var(--text-colour);
    height: 30px;
    font-size: 14px;
    margin-bottom: 20px;
    width: 100px;
}

/* Date Format */

.dateFormatSelect {
    background: var(--card-selection);
    color: var(--text-colour);
    border: 1px solid var(--text-colour);
    height: 30px;
    font-size: 13px;
    width: 110px;
}

.tax-box {
    margin-bottom: 20px;
}

.dateFormat {
    margin-bottom: 20px;
}

/* currency dropdown */

.options {
    border: 1px solid var(--border-lines);
    width: 100%;
    height: 3rem;
    background-color: var(--card-selection)
}

.option {
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: 0.5fr 1fr 0.2fr;
    cursor: pointer;
    align-items: center;
}

.dropdownArrow {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
}

/* Dropdown customisation */
.currency-option {
    display: flex;
    align-items: center;
    padding: 5px;
    gap: 8px;
    cursor: pointer;
}

.flag-img {
    width: 24px;
    height: 16px;
    object-fit: contain;
}

/* Make the dropdown match the full width */
#dropdownCurrencies {
    width: 100%;
    /* Match the parent container width */
    max-height: 300px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ccc;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Wrap the entire currency control in a relatively positioned container */
.currency-wrapper {
    position: relative;
    width: 100%;
}

.dropdownOption {
    border: 3px grey solid;
    background-color: transparent;
    width: 250px;
    height: 300px;
    border-top: 0px;
    overflow-y: scroll;
}

.dropdownChoice {
    display: grid;
    grid-template-columns: 0.7fr 0.9fr;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: large;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
}

.choiceRight {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-left: 10px;
}

.flag {
    width: 100px;
    height: 60px;
    /* pick a consistent height */
    object-fit: contain;
    /* crop/scale nicely without distortion */
}

/* Style for each currency option */
.dropdownBox {
    /* background-color: var(--card-selection); */
    color: var(--text-colour);
    border: 1px solid var(--text-colour);
    border: 3px grey solid;
    /* background-color: transparent; */
    width: 250px;
    height: 80px;
    display: grid;
    grid-template-columns: 2fr 0.2fr;
    justify-content: center;
    align-items: center;
}

.stripe-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.stripe-toggle-row label {
    font-size: 1rem;
}

.stripe-toggle-row input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}