.username {
    background: white;
    color: black !important;
}

/************************************************************ 
*	card css                                                *
*************************************************************/
.custom-card {
    width: 100%;
}

.card-spacing {
    margin-top: 2rem;
}

.card-center {
    display: block;
    text-align: center;
}

.card-col {
    margin-top: 3rem;
    display: flex;
}

.card-shadow:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.card-shadow {
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);;
}

.card-icon {
    font-size: 4em;
}

.center-card-icon {
    font-size: 4em;
}

.smal-card-icon {
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

.settings-card {
    margin-top: 2rem;
}

/*********************************/
/* colors                        */
/*********************************/
.red {
    -moz-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    color: #ff4757;
}

.red:hover {
    color: #ff6b81;
}

.blue {
    -moz-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    color: #0984e3;
}

.blue:hover {
    color: #74b9ff;
}

.green {
    color: #27ae60;
}

.green:hover {
    -moz-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    color: #2ecc71;
}

.inline-form {
    display: inline;
}

.heading-icon {
    font-size: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}


/*********************************/
/* profile                       */
/*********************************/
.profile-icon {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    color: #555;
    margin: 1rem;
}


.btn-add-location{
    margin-top: 1rem;
}

.setting-control-container{
    margin-top: 2rem;
}

.mail-accordion{
    margin-top: 2rem;
}

.item-link{
    color: black !important;
}

.item-card{
    margin-top: 2rem;
    display: flex;
}

.card-navigation_row{
    margin: 3rem;
}

.invisible{
    color: white !important;
}

.hidden{
    display: none !important;
}

/*********************************/
/* spacing helpers               */
/*********************************/
.mb-075 {
    margin-bottom: 0.75rem;
}

/*********************************/
/* kanban board                  */
/*********************************/
.kanban-board {
    display: flex;
    gap: 1rem;
    padding: 1rem 2rem 2rem 2rem;
    overflow-x: auto;
}

.kanban-column {
    min-width: 280px;
    max-width: 320px;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 0.75rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.kanban-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.kanban-ticket {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.75rem;
}

.ticket-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.ticket-link:hover {
    text-decoration: none;
}

.kanban-ticket h6 {
    margin: 0 0 0.4rem 0;
    font-weight: 600;
}

.kanban-meta {
    font-size: 0.85rem;
    color: #555;
}

.kanban-actions {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.priority-badge {
    font-size: 0.75rem;
}

.priority-low {
    background: #6c757d;
    color: #fff;
}

.priority-medium {
    background: #17a2b8;
    color: #fff;
}

.priority-high {
    background: #fd7e14;
    color: #fff;
}

.priority-critical {
    background: #dc3545;
    color: #fff;
}

/*********************************/
/* ticket priority icons         */
/*********************************/
.ticket-priority {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.ticket-priority--low i {
    color: #0d6efd;
}

.ticket-priority--medium i {
    color: #6c757d;
}

.ticket-priority--high i {
    color: #fd7e14;
}

.ticket-priority--critical i {
    color: #dc3545;
}

.ticket-priority-text {
    color: #495057;
    font-size: 0.85rem;
}

.ticket-priority-display {
    margin-top: 0.35rem;
}

.kanban-empty {
    font-size: 0.85rem;
    color: #777;
    padding: 0.25rem 0.1rem;
}

.kanban-admin {
    margin: 1rem 2rem;
}

.kanban-ticket.is-dragging {
    opacity: 0.6;
}

.kanban-column.drag-over {
    border: 2px dashed #6c757d;
}

/*********************************/
/* labels                        */
/*********************************/
.label-badge {
    color: #fff;
    display: inline-block;
}

.label-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.6rem;
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
    color: #fff;
}

.label-chip__remove {
    background: transparent;
    border: none;
    color: #fff;
    margin-left: 0.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.label-dropdown-item {
    display: flex;
    align-items: center;
}

.label-color-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

/*********************************/
/* ticket comments/history       */
/*********************************/
.comment-replies {
    margin-top: 0.75rem;
    margin-left: 1.5rem;
    border-left: 2px solid #e9ecef;
    padding-left: 0.75rem;
}

.history-item {
    margin-bottom: 0.5rem;
}

/*********************************/
/* page layout helpers           */
/*********************************/
.page-container-wide {
    margin: 2rem 3rem 0 3rem;
}

.fs-16 {
    font-size: 1.6rem;
}

/*********************************/
/* login page                    */
/*********************************/
#login-form {
    width: 40%;
}

.login-submit {
    margin-top: 2rem;
}

/*********************************/
/* email templates               */
/*********************************/
.email-body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

.email-table {
    width: 100%;
    max-width: 600px;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    overflow: hidden;
}

.email-header {
    background-color: #4caf50;
    color: #ffffff;
    text-align: center;
    padding: 20px;
}

.email-title {
    margin: 0;
    font-size: 24px;
}

.email-content {
    padding: 20px;
}

.email-paragraph {
    font-size: 16px;
    color: #333333;
    line-height: 1.5;
    margin: 0;
}

.email-paragraph--spaced {
    margin: 10px 0;
}

.email-footer {
    background-color: #f1f1f1;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    color: #777777;
}

/*********************************/
/* attachment pages              */
/*********************************/
.attachment-not-found-body {
    background: linear-gradient(135deg, #0f1724 0%, #1b2330 100%);
    color: #f8f9fa;
    margin-top: 3rem;
}

.attachment-not-found-card {
    background: rgba(255, 255, 255, 0.06);
    border: none;
}

.attachment-ghost {
    font-size: 6rem;
    line-height: 1;
}

.attachment-mono {
    font-family: "Courier New", Courier, monospace;
}

.attachment-sparkle {
    animation: attachment-float 3s ease-in-out infinite;
}

@keyframes attachment-float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}

.attachment-small-muted {
    color: rgba(248, 249, 250, 0.7);
}

.attachment-password-body {
    background-color: #f8f9fa;
    margin-top: 3rem;
}

.attachment-password-card {
    border-radius: 1rem;
}

/*********************************/
/* letterhead                    */
/*********************************/
@page {
    size: A4;
    margin: 0;
}

.letterhead-html,
.letterhead-body {
    margin: 0;
    padding: 0;
    background: #fff;
    color: #000;
}

.letterhead-body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11pt;
    line-height: 1.4;
    --addr-left: 20mm;
    --addr-top: 45mm;
    --addr-width: 90mm;
    --addr-height: 45mm;
    --text-left: 20mm;
    --text-right: 20mm;
    --text-top: 105mm;
}

.letterhead-body .sheet {
    width: 210mm;
    height: 297mm;
    position: relative;
    margin: 0 auto;
    background: #fff;
}

.letterhead-body .recipient {
    position: absolute;
    left: var(--addr-left);
    top: var(--addr-top);
    width: var(--addr-width);
    height: var(--addr-height);
    overflow: hidden;
}

.letterhead-body .date-line {
    position: absolute;
    left: 20mm;
    right: 20mm;
    top: 87mm;
    text-align: right;
    margin: 0;
}

.letterhead-body .content {
    position: absolute;
    left: var(--text-left);
    right: var(--text-right);
    top: var(--text-top);
}

.letterhead-body .subject {
    font-weight: 700;
    margin: 0 0 6mm 0;
}

.letterhead-body .content p {
    margin: 0 0 4mm 0;
}

.letterhead-body .signature {
    margin-top: 10mm;
}

.letterhead-body .signature-logo {
    margin-top: 6mm;
}

.letterhead-body .signature-logo img {
    height: 18mm;
    width: auto;
    display: block;
}

.letterhead-body .footer {
    position: absolute;
    left: var(--text-left);
    right: var(--text-right);
    bottom: 15mm;
    font-size: 9.5pt;
    white-space: pre-line;
    display: table;
    width: 100%;
    table-layout: fixed;
}

.letterhead-body .footer > div {
    display: table-cell;
    width: 50%;
    vertical-align: top;
    padding-right: 6mm;
}

.letterhead-body .footer > div:last-child {
    padding-right: 0;
}

.letterhead-body .fold-mark {
    position: absolute;
    left: 0;
    width: 6mm;
    border-top: 0.3mm solid #888;
    opacity: 0.35;
}

.letterhead-body .fold-1 {
    top: 105mm;
}

.letterhead-body .fold-2 {
    top: 210mm;
}

.letterhead-body * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/*********************************/
/* flash/sweetalert              */
/*********************************/
.swal-modal {
    padding-bottom: 20px;
}

/*********************************/
/* incoming mail header          */
/*********************************/
.subscription-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #f9f9f9;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot--green {
    background: #2e7d32;
}

.status-dot--yellow {
    background: #f9a825;
}

.status-dot--red {
    background: #c62828;
}

/*********************************/
/* label color picker            */
/*********************************/
.label-picker-swatch {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.label-color-picker {
    /* Keep wrapper width tied to the button; menu should not reserve layout space. */
    position: relative;
    display: inline-block;
    min-width: 0;
    width: auto;
    vertical-align: top;
}

.label-color-picker [data-color-picker-toggle] {
    min-width: 7.5rem;
}

.label-picker-menu {
    /* Overlay the dropdown instead of contributing to parent width. */
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
    width: auto;
    min-width: 14rem;
    max-width: min(90vw, 18rem);
    z-index: 1050;
    transform: none !important;
}

.label-picker-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.35rem;
}

.label-picker-option {
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0;
    cursor: pointer;
}

.label-picker-option.is-selected {
    box-shadow: 0 0 0 2px #212529;
}

/*********************************/
/* language switcher             */
/*********************************/
.language-switcher {
    display: flex;
    align-items: center;
}

.language-switcher__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: 0.375rem;
    color: #343a40;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1;
    border: 1px solid transparent;
    background: transparent;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.language-switcher__trigger:hover,
.language-switcher__trigger:focus {
    color: #212529;
    text-decoration: none;
    background-color: #f1f3f5;
    border-color: #dee2e6;
}

.language-switcher__trigger::after {
    display: none;
}

.language-switcher__icon {
    font-size: 0.9rem;
    margin-right: 0.35rem;
}

.language-switcher__caret {
    display: inline-block;
    width: 0;
    height: 0;
    vertical-align: 0.15em;
    border-top: 0.3em solid currentColor;
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
}

.language-switcher__label {
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-right: 0.1rem;
}

.language-switcher__menu {
    min-width: 10rem;
    padding: 0.3rem;
    margin-top: 0.35rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.language-switcher__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0.375rem;
    padding: 0.4rem 0.55rem;
    font-size: 0.875rem;
}

.language-switcher__item:hover,
.language-switcher__item:focus {
    background-color: #f1f3f5;
}

.language-switcher__item.active,
.language-switcher__item.active:active {
    color: #212529;
    background-color: #e9ecef;
    font-weight: 600;
}

.language-switcher__check {
    font-size: 0.75rem;
    color: #495057;
}

.language-switcher__check--hidden {
    visibility: hidden;
}
