﻿
.print-container {
    width: 300px;
    height: 250px;
    overflow-x: auto;
}

.print-mode {
    margin-right: 10px;
    height: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #0078d4;
    border-radius: 6px;
    overflow: hidden; /* important for rounded corners */
    margin-bottom: 20px;
}

.print-mode button {
    border: none;
    background: transparent;
    font-size: 15px;
    cursor: pointer;
    color: #0078d4;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* divider between tabs */
.print-mode button + button {
    border-left: 1px solid #0078d4;
}

/* active tab */
.print-mode button.active {
    background-color: #0078d4;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
}

/* hover */
.print-mode button:not(.active):hover {
    background-color: rgba(0, 120, 212, 0.01);
}

.form-item {
    margin-top: 10px;
    position: relative;
    height: 30px;
    display: flex;
    align-items: center;
}

.form-item select {
    width: 100%;
    height: 30px;
    padding: 0 10px;
    border-radius: 4px;
    border: 1px solid #0078d4;
    background: #fff;
    font-size: 12px;
    font-weight: bold;
}

.form-item label {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 0 4px;
    color: #666;
    font-size: 11px;
    pointer-events: none;
    transition: all 0.15s ease;
}

.form-item select:focus + label,
.form-item select:not([value=""]) + label {
    top: 0;
    font-size: 11px;
    color: #0078d4;
}

.dropdown-with-default-btn {
    display: grid;
    grid-template-columns: 1fr 40px;
    gap: 8px;
    align-items: stretch;
}

.default-btn {
    margin-top: 10px;
    height: 30px;
    width: 40px;
    border-radius: 6px;
    border: 1px solid #d0d0d0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.default-btn-icon {
    fill: #9aa0a6;
    width: 25px;
    height: 25px;
}

/* Hover */
.default-btn:hover {
    border-color: #0078d4;
}

/* Active (default selected) */
.default-btn.active {
    border-color: #0078d4;
}

.default-btn.active .default-btn-icon {
    fill: #0078d4;
}

.copytype-container {
    border: 1px solid #0078d4;
    border-radius: 6px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    background: #fff;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: bold;
}

.copy-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 2px;
    border-radius: 4px;
    cursor: pointer;
}

.copy-row:hover {
    background: #f5f7fa;
}

.copy-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.copy-row.custom input[type="text"] {
    flex: 1;
    height: 25px;
    padding: 0 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.copy-row.custom input[type="text"]:disabled {
    background: #f2f2f2;
}

.custom-input {
    flex: 1;
    height: 25px;
    padding: 0 8px;
    border: 1px solid #0078d4; /* visible border */
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    outline: none;
    font-weight: bold;
}

/* Disabled state */
.custom-input:disabled {
    background: #f3f3f3;
    border-color: #c8c8c8;
    cursor: not-allowed;
}

/* Focus state (Power BI feel) */
.custom-input:focus {
    border-color: #0078d4;
    box-shadow: 0 0 0 1px rgba(0, 120, 212, 0.3);
}

.total-print-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
    border: 1px solid #0078d4;
    border-radius: 6px;
    padding: 5px;
}