/* Taskip Quotation Generator Styles */

.taskip-quotation-generator-anchor {
    scroll-margin-top: 80px;
}

.taskip-quotation-generator {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.taskip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 15px;
}

.taskip-header h2 {
    margin: 0;
    color: #1a202c;
    font-size: 28px;
    font-weight: 600;
    flex: 1 1 auto;
    min-width: 200px;
}

.taskip-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.taskip-tab-switcher {
    display: flex;
    background: #f7fafc;
    border-radius: 8px;
    padding: 4px;
}

.taskip-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.taskip-tab.active {
    background: #667eea;
    color: white;
}

.taskip-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.taskip-btn-primary {
    background: #667eea;
    color: white;
}

.taskip-btn-primary:hover {
    background: #5a67d8;
}

.taskip-btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.taskip-btn-secondary:hover {
    background: #cbd5e0;
}

.taskip-btn-success {
    background: #48bb78;
    color: white;
}

.taskip-btn-success:hover {
    background: #38a169;
}

.taskip-section {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.taskip-section h3 {
    margin: 0 0 20px 0;
    color: #1a202c;
    font-size: 18px;
    font-weight: 600;
}

.taskip-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.taskip-field {
    display: flex;
    flex-direction: column;
}

.taskip-field label {
    margin-bottom: 6px;
    font-weight: 500;
    color: #4a5568;
}

.taskip-field input,
.taskip-field select,
.taskip-field textarea {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.taskip-field input:focus,
.taskip-field select:focus,
.taskip-field textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Quotation Preview Styles */
.taskip-quotation-preview {
    background: white;
    min-height: 600px;
}

.taskip-document {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.taskip-document-header {
    display: block;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    width: 100%;
    box-sizing: border-box;
}

.taskip-company-section {
    margin-bottom: 25px;
    text-align: left;
}

.taskip-company-section .taskip-logo {
    display: block;
    margin-bottom: 15px;
}

.taskip-company-details {
    margin-bottom: 15px;
}

.taskip-quotation-meta {
    text-align: left;
    margin-bottom: 20px;
}

.taskip-logo {
    max-width: 150px;
    max-height: 80px;
}

.taskip-company-details h1 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #1a202c;
    line-height: 1.2;
}

.taskip-address {
    margin-bottom: 10px;
}

.taskip-address p {
    margin: 2px 0;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.4;
}

.taskip-document-title {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
    margin: 0 0 15px 0;
    text-align: left;
    line-height: 1.2;
}

.taskip-status {
    margin-bottom: 15px;
}

.taskip-document-details {
    margin-bottom: 10px;
}

.taskip-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.status-draft {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.status-sent {
    background: #ebf8ff;
    color: #2b6cb0;
    border: 1px solid #bee3f8;
}

.status-accepted {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #9ae6b4;
}

.status-rejected {
    background: #fed7e2;
    color: #c53030;
    border: 1px solid #fbb6ce;
}

.taskip-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.taskip-detail-row span:first-child {
    color: #4a5568;
}

.taskip-detail-row span:last-child {
    font-weight: 500;
    color: #1a202c;
}

.taskip-client-section {
    margin-bottom: 30px;
}

.taskip-client-section h3 {
    margin: 0 0 15px 0;
    color: #1a202c;
    font-size: 16px;
    font-weight: 600;
}

.taskip-client-info p {
    margin: 3px 0;
    color: #4a5568;
    font-size: 14px;
}

.taskip-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.taskip-items-table th,
.taskip-items-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.taskip-items-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #1a202c;
    font-size: 14px;
}

.taskip-items-table td {
    font-size: 14px;
    color: #4a5568;
}

.taskip-item-description strong {
    color: #1a202c;
}

.taskip-item-details {
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
}

.taskip-totals-section {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 40px;
}

.taskip-totals-table {
    min-width: 300px;
}

.taskip-total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.taskip-final-total {
    border-top: 2px solid #1a202c;
    border-bottom: 2px solid #1a202c;
    font-size: 18px;
    padding: 12px 0;
    margin-top: 10px;
}

.taskip-quotation-actions {
    margin: 40px 0;
    text-align: center;
}

.taskip-client-actions,
.taskip-admin-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.taskip-disclaimer {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    margin-top: 30px;
}

.taskip-disclaimer p {
    margin: 5px 0;
    font-size: 14px;
    color: #4a5568;
}

/* Drag and Drop Styles */
.taskip-line-item.drag-over {
    border: 2px dashed #667eea !important;
    background: rgba(102, 126, 234, 0.1) !important;
    transform: scale(1.02);
}

.taskip-line-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.taskip-line-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

/* Enhanced Button Styles */
.taskip-btn {
    transition: all 0.3s ease;
}

.taskip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.taskip-tab {
    transition: all 0.2s ease;
}

.taskip-tab:hover {
    transform: translateY(-1px);
}

.taskip-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Section Enhancements */
.taskip-section {
    transition: all 0.2s ease;
}

.taskip-section:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Input Focus Enhancements */
.taskip-field input:focus,
.taskip-field select:focus,
.taskip-field textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* Responsive Design - Large Tablets */
@media (max-width: 1024px) {
    .taskip-quotation-generator {
        max-width: 100%;
        padding: 15px;
    }
    
    .taskip-document {
        padding: 30px;
    }
    
    .taskip-row {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .taskip-header {
        gap: 12px;
    }
    
    .taskip-header-actions {
        gap: 15px;
    }
}

/* Medium Tablets */
@media (max-width: 900px) {
    .taskip-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .taskip-header h2 {
        font-size: 24px;
        text-align: center;
    }
    
    .taskip-header-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .taskip-tab-switcher {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .taskip-quotation-generator-container {
        padding: 0;
        width: 100%;
        overflow-x: hidden;
    }
    
    .taskip-quotation-generator {
        padding: 10px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .taskip-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        padding: 15px 10px;
        margin-bottom: 20px;
        width: 100%;
    }
    
    .taskip-header h2 {
        font-size: 20px;
        text-align: center;
        width: 100%;
        min-width: unset;
        padding: 0 5px;
        word-wrap: break-word;
    }
    
    .taskip-header-actions {
        justify-content: stretch;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding: 0;
    }
    
    .taskip-tab-switcher {
        width: 100%;
        justify-content: stretch;
        background: #f7fafc;
        border-radius: 6px;
        padding: 3px;
    }
    
    .taskip-tab {
        flex: 1;
        padding: 10px 8px;
        font-size: 13px;
        text-align: center;
        min-width: 0;
        word-wrap: break-word;
    }
    
    .taskip-btn {
        width: 100%;
        justify-content: center;
    }
    
    .taskip-section {
        padding: 20px 15px;
        margin-bottom: 15px;
        border-radius: 6px;
    }
    
    .taskip-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .taskip-row {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .taskip-field label {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .taskip-field input,
    .taskip-field select,
    .taskip-field textarea {
        padding: 12px;
        font-size: 16px; /* Prevent iOS zoom */
    }
    
    /* Document Preview Mobile */
    .taskip-document {
        padding: 20px 15px;
        margin: 0 -10px;
        border-radius: 0;
        box-shadow: none;
    }
    
    .taskip-document-header {
        padding: 15px 0 20px 0;
        margin-bottom: 25px;
    }
    
    .taskip-company-section {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .taskip-quotation-meta {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .taskip-logo {
        max-width: 120px;
        max-height: 60px;
        margin: 0 auto 15px;
    }
    
    .taskip-company-details h1 {
        font-size: 20px;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .taskip-address {
        text-align: center;
    }
    
    .taskip-address p {
        font-size: 13px;
    }
    
    .taskip-document-title {
        text-align: center;
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .taskip-status {
        padding: 6px 12px;
        font-size: 11px;
        margin: 0 auto 15px;
        display: inline-block;
    }
    
    .taskip-detail-row {
        font-size: 13px;
        margin-bottom: 6px;
        flex-wrap: wrap;
    }
    
    .taskip-client-section {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .taskip-client-section h3 {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .taskip-client-info p {
        font-size: 13px;
    }
    
    /* Table Responsiveness */
    .taskip-items-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px;
        position: relative;
    }
    
    .taskip-items-table:before {
        content: '← Scroll →';
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 10px;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s;
        z-index: 10;
    }
    
    .taskip-items-table.scrollable:before {
        opacity: 1;
    }
    
    .taskip-items-table table {
        min-width: 500px;
    }
    
    .taskip-items-table th,
    .taskip-items-table td {
        padding: 10px 6px;
        font-size: 13px;
    }
    
    .taskip-item-description strong {
        font-size: 13px;
    }
    
    .taskip-item-details {
        font-size: 11px;
    }
    
    /* Totals Section Mobile */
    .taskip-totals-section {
        justify-content: center;
        margin-bottom: 30px;
    }
    
    .taskip-totals-table {
        width: 100%;
        max-width: 350px;
    }
    
    .taskip-total-row {
        padding: 6px 0;
        font-size: 14px;
    }
    
    .taskip-final-total {
        font-size: 16px;
        padding: 10px 0;
    }
    
    /* Actions Mobile */
    .taskip-quotation-actions {
        margin: 30px 0;
    }
    
    .taskip-client-actions,
    .taskip-admin-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .taskip-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Disclaimer Mobile */
    .taskip-disclaimer {
        padding: 15px;
        margin-top: 20px;
        border-radius: 6px;
    }
    
    .taskip-disclaimer p {
        font-size: 13px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .taskip-quotation-generator-container {
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    .taskip-quotation-generator {
        padding: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .taskip-header {
        margin-bottom: 15px;
        padding: 12px 8px;
        border-bottom: 1px solid #e2e8f0;
        width: 100%;
    }
    
    .taskip-header h2 {
        font-size: 18px;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .taskip-header-actions {
        gap: 8px;
    }
    
    .taskip-tab-switcher {
        padding: 2px;
    }
    
    .taskip-tab {
        padding: 8px 6px;
        font-size: 12px;
        border-radius: 4px;
    }
    
    .taskip-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .taskip-section {
        padding: 15px 12px;
        margin-bottom: 12px;
    }
    
    .taskip-section h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .taskip-field label {
        font-size: 13px;
    }
    
    .taskip-field input,
    .taskip-field select,
    .taskip-field textarea {
        padding: 10px;
        font-size: 16px; /* Prevent iOS zoom */
    }
    
    /* Document Preview Small Mobile */
    .taskip-document {
        padding: 15px 10px;
    }
    
    .taskip-document-header {
        padding: 10px 0 15px 0;
        margin-bottom: 20px;
    }
    
    .taskip-logo {
        max-width: 100px;
        max-height: 50px;
    }
    
    .taskip-company-details h1 {
        font-size: 18px;
    }
    
    .taskip-address p {
        font-size: 12px;
    }
    
    .taskip-document-title {
        font-size: 20px;
    }
    
    .taskip-detail-row {
        font-size: 12px;
    }
    
    .taskip-client-section h3 {
        font-size: 14px;
    }
    
    .taskip-client-info p {
        font-size: 12px;
    }
    
    .taskip-items-table th,
    .taskip-items-table td {
        padding: 8px 4px;
        font-size: 12px;
    }
    
    .taskip-item-description strong {
        font-size: 12px;
    }
    
    .taskip-item-details {
        font-size: 10px;
    }
    
    .taskip-total-row {
        font-size: 13px;
    }
    
    .taskip-final-total {
        font-size: 15px;
        padding: 8px 0;
    }
    
    .taskip-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .taskip-disclaimer {
        padding: 12px;
    }
    
    .taskip-disclaimer p {
        font-size: 12px;
        margin: 3px 0;
    }
}

/* Alternative Table Layout for Very Small Screens */
@media (max-width: 480px) {
    .taskip-items-table {
        margin: 0;
        padding: 0;
    }
    
    .taskip-items-table table {
        min-width: unset;
        width: 100%;
    }
    
    .taskip-items-table thead {
        display: none;
    }
    
    .taskip-items-table tbody tr {
        display: block;
        margin-bottom: 15px;
        padding: 12px;
        background: #f7fafc;
        border-radius: 6px;
        border: 1px solid #e2e8f0;
    }
    
    .taskip-items-table tbody td {
        display: block;
        text-align: left;
        padding: 5px 0;
        border: none;
        position: relative;
        padding-left: 30%;
    }
    
    .taskip-items-table tbody td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 25%;
        font-weight: 600;
        font-size: 11px;
        color: #4a5568;
    }
    
    .taskip-items-table tbody td:first-child {
        padding-left: 0;
        font-weight: 600;
        margin-bottom: 8px;
        padding-bottom: 8px;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .taskip-items-table tbody td:first-child:before {
        display: none;
    }
    
    .taskip-items-table tbody td:last-child {
        padding-top: 8px;
        margin-top: 8px;
        border-top: 1px solid #e2e8f0;
        font-weight: 600;
        color: #1a202c;
    }
}

/* Landscape Orientation Adjustments */
@media (max-width: 768px) and (orientation: landscape) and (min-height: 400px) {
    .taskip-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        padding: 10px 15px;
    }
    
    .taskip-header h2 {
        text-align: left;
        font-size: 18px;
        flex: 0 1 auto;
        min-width: 150px;
    }
    
    .taskip-header-actions {
        justify-content: flex-end;
        flex-direction: row;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .taskip-tab-switcher {
        width: auto;
        min-width: 200px;
    }
    
    .taskip-tab {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .taskip-document-header {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        gap: 20px;
    }
    
    .taskip-document-title {
        text-align: right;
    }
}

/* Touch-friendly Enhancements */
@media (hover: none) and (pointer: coarse) {
    .taskip-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .taskip-field input,
    .taskip-field select,
    .taskip-field textarea {
        min-height: 44px;
    }
    
    .taskip-tab {
        min-height: 40px;
    }
    
    .taskip-sheet-close {
        min-width: 44px;
        min-height: 44px;
    }
}

@media print {
    .taskip-header,
    .taskip-quotation-actions,
    .taskip-btn,
    .print-hide {
        display: none !important;
    }
    
    .taskip-document {
        box-shadow: none;
        padding: 0;
    }
    
    .taskip-quotation-preview {
        background: white;
    }
    
    /* Hide calendar icon from date inputs */
    input[type="date"]::-webkit-calendar-picker-indicator,
    input[type="date"]::-webkit-inner-spin-button,
    input[type="date"]::-webkit-clear-button {
        display: none !important;
    }
    
    /* Hide all input styling */
    input, textarea, select { 
        background: transparent !important; 
        border: none !important; 
        outline: none !important;
        resize: none !important;
    }
    
    /* Fix totals alignment when Tax & Discount Settings are hidden */
    div[style*="grid-template-columns"] { 
        display: block !important; 
    }
    
    .taskip-totals-section { 
        display: flex !important; 
        justify-content: flex-end !important; 
        width: 100% !important;
        margin-bottom: 40px !important; 
    }
    
    /* Ensure print color accuracy */
    * { 
        -webkit-print-color-adjust: exact !important;
        box-shadow: none !important;
    }
}

/* Customization Sheet Styles */
.taskip-customization-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: none;
}

.taskip-customization-overlay.active {
    opacity: 1;
    visibility: visible;
    display: block;
}

.taskip-customization-sheet {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 0;
    visibility: hidden;
    opacity: 0;
}

.taskip-customization-sheet.active {
    right: 0;
    visibility: visible;
    opacity: 1;
}

.taskip-sheet-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
    display: none;
}

.taskip-customization-sheet.active .taskip-sheet-header {
    display: block;
}

.taskip-sheet-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
}

.taskip-sheet-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.taskip-sheet-close:hover {
    background: #e9ecef;
    color: #495057;
}

.taskip-sheet-content {
    padding: 20px;
    display: none;
}

.taskip-customization-sheet.active .taskip-sheet-content {
    display: block;
}

.taskip-customization-section {
    margin-bottom: 30px;
}

.taskip-customization-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

.taskip-color-input {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.taskip-color-input label {
    flex: 1;
    font-weight: 500;
    color: #495057;
    margin: 0;
}

.taskip-color-input input[type="color"] {
    width: 50px;
    height: 40px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
}

.taskip-color-input input[type="color"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.taskip-header-styles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.taskip-header-style {
    padding: 15px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    background: white;
}

.taskip-header-style:hover {
    border-color: #cbd5e0;
    background: #f8f9fa;
}

.taskip-header-style.active {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.taskip-header-style svg {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}

.taskip-header-style span {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #495057;
}

.taskip-checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.taskip-checkbox-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.taskip-checkbox-field label {
    margin: 0;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
}

.taskip-sheet-actions {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8f9fa;
    position: sticky;
    bottom: 0;
    display: none;
    gap: 10px;
}

.taskip-customization-sheet.active .taskip-sheet-actions {
    display: flex;
}

/* Customization Sheet Mobile Styles */
@media (max-width: 768px) {
    .taskip-customization-overlay {
        display: none;
        visibility: hidden;
        opacity: 0;
    }
    
    .taskip-customization-overlay.active {
        display: block;
        visibility: visible;
        opacity: 1;
    }
    
    .taskip-customization-sheet {
        width: 100%;
        right: -100%;
        max-width: 100%;
        visibility: hidden;
        opacity: 0;
        transform: translateX(100%);
    }
    
    .taskip-customization-sheet.active {
        right: 0;
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
    }
    
    .taskip-sheet-header {
        padding: 15px;
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        right: 0;
        display: none;
    }
    
    .taskip-customization-sheet.active .taskip-sheet-header {
        display: block;
    }
    
    .taskip-sheet-header h3 {
        font-size: 16px;
        padding-right: 40px;
    }
    
    .taskip-sheet-close {
        width: 35px;
        height: 35px;
        top: 15px;
        right: 15px;
    }
    
    .taskip-sheet-content {
        padding: 15px;
        margin-top: 60px;
        margin-bottom: 80px;
        display: none;
    }
    
    .taskip-customization-sheet.active .taskip-sheet-content {
        display: block;
    }
    
    .taskip-customization-section {
        margin-bottom: 25px;
    }
    
    .taskip-customization-section h4 {
        font-size: 15px;
        margin-bottom: 12px;
        padding-bottom: 6px;
    }
    
    .taskip-color-input {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .taskip-color-input label {
        font-size: 14px;
    }
    
    .taskip-color-input input[type="color"] {
        width: 45px;
        height: 35px;
    }
    
    .taskip-header-styles {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .taskip-header-style {
        padding: 12px 8px;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .taskip-header-style svg {
        width: 30px;
        height: 30px;
        margin: 0;
    }
    
    .taskip-header-style span {
        font-size: 13px;
        text-align: left;
    }
    
    .taskip-checkbox-field {
        margin-bottom: 12px;
    }
    
    .taskip-checkbox-field label {
        font-size: 14px;
    }
    
    .taskip-sheet-actions {
        padding: 15px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: #f8f9fa;
        border-top: 1px solid #e2e8f0;
        z-index: 11;
        display: none;
    }
    
    .taskip-customization-sheet.active .taskip-sheet-actions {
        display: flex;
    }
    
    .taskip-sheet-actions .taskip-btn {
        flex: 1;
        font-size: 14px;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .taskip-sheet-header h3 {
        font-size: 15px;
    }
    
    .taskip-sheet-content {
        padding: 12px;
    }
    
    .taskip-customization-section h4 {
        font-size: 14px;
    }
    
    .taskip-color-input label {
        font-size: 13px;
    }
    
    .taskip-header-style {
        padding: 10px 6px;
    }
    
    .taskip-header-style span {
        font-size: 12px;
    }
    
    .taskip-checkbox-field label {
        font-size: 13px;
    }
    
    .taskip-sheet-actions .taskip-btn {
        font-size: 13px;
        padding: 8px 12px;
    }
}