@import url('variables.css');
@import url('project.css');
@import url('calendar.css');
@import url('excel_imports.css');
@import url('transport_load.css');
@import url('consignment.css');
@import url('typology.css');
@import url('sidebar.css');
@import url('module.css');
@import url('trailer.css');
@import url('location.css');
@import url('transport_base.css');
@import url('issue_report.css');
@import url('chat.css');
@import url('supermarket.css');
@import url('faq.css');

body {
    background: var(--secondary-color);
    font-family: 'Muli', sans-serif;
    color: var(--primary-color) !important;
}

button:disabled,
button[disabled] {
    opacity: 25%;
}


#loading-screen {
    justify-content: center;
    align-items: center;
    height: 100vh;
}

button,
label {
    font-family: 'Muli', sans-serif;
}

a {
    text-decoration: none;
    color: var(--primary-color) !important;
}

.underline {
    text-decoration: underline !important;
}

#content {
    padding-left: 21vw;
    padding-top: 15vh
}

header {
    position: fixed;
    width: 75.75vw;
    right: 0;
    height: 100px;
    border: var(--border);
    background: white;
    z-index: 1;
    top: 0;
    align-items: center;
    justify-content: space-between;
    display: flex;
    padding-left: 2vw;
    padding-right: 2vw;
    gap: 20px;
}

.hamburger {
    position: absolute;
    left: 100px;
    cursor: pointer;
    padding: 50px;
    padding-left: 10px;
}

.show-mobile {
    display: none;
}

.hide-mobile {
    display: flex;
}

.side-panel {
    position: fixed;
    width: 35vw;
    bottom: 0;
    top: 0;
    background: white;
    border: var(--border);
    padding: 50px;
    height: 100vh;
    padding-top: 20px;
    overflow: auto;
    flex-direction: column;
    z-index: 10;
    transition: all 0.5s ease;
}

.side-panel-appear {
    right: 0 !important;
}

.side-panel-hide {
    right: -45vw;
}

.side-panel-wide-hide {
    right: -75vw;
}

.side-panel-header {
    height: 50px;
    background: white;
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.side-panel form,
.side-panel .side-panel-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    overflow: scroll;
    padding-bottom: 50px;
    padding-top: 50px
}

.overlay {
    width: 100vw;
    height: 500vw;
    background: rgba(0, 0, 0, 0.648);
    top: 0;
    left: 0;
    position: fixed;
    display: none;
    z-index: 9;
}

.popup-overlay {
    width: 100vw;
    height: 500vw;
    background: rgba(0, 0, 0, 0.648);
    top: 0;
    left: 0;
    position: fixed;
    display: none;
    z-index: 13;
}

textarea {
    min-height: 50px;
}

.side-panel-options {
    display: flex;
    gap: 50px;
}

input {
    height: 20px;
    padding: 10px;
    font-size: 20px;
}

.primary-button {
    background: var(--primary-color);
    color: var(--secondary-color) !important;
    padding: 10px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.red-button {
    background: red;
    color: white;
    padding: 10px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.red-button:hover {
    background: rgb(121, 0, 0);
}

.secondary-button {
    background: transparent;
    color: var(----primary-color);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}


.primary-button:hover,
.secondary-button:hover {
    background: var(--hover-color);
    color: var(--primary-color)
}

.login-form {
    background: white;
    padding: 50px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    width: 500px;
    gap: 20px;
    box-shadow: var(--shadow);
}

.login-form a {
    cursor: pointer;
    text-decoration: underline;
}

.error {
    color: red !important;
}

.big-button {
    padding: 20px;
    font-size: large;
}

.search-bar h4 {
    margin: 0;
    margin-bottom: 5px
}

.popup-modal {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: fixed;
    background: white;
    border-radius: 30px;
    top: 50%;
    cursor: initial;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    min-width: 600px;
    min-height: 600px;
    max-width: 600px;
    max-height: 600px;
}

.new-tab {
    cursor: pointer;
    width: 15px;
    height: 15px;
    margin: 5px;
    margin-top: 10px;
}

.no-scroll {
    overflow: hidden;
}

.close-popup {
    position: absolute;
    bottom: 20px;
}

.back-arrow {
    font-size: large;
    display: flex;
    align-items: center;
}

.back-button {
    width: 25px;
    height: 25px;
}

hr {
    border-bottom: none;
    border-top: 1px solid lightgray;
    width: 80%;
    border-left: none;
    border-right: none;
}

.green-button {
    display: inline-block;
    background-color: var(--secondary-background);
    color: #fff !important;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    border: none;
    text-align: center;
}

.green-button:hover {
    background-color: #0056b3;
}

.bullet {
    border: 1px solid lightgray;
    border-radius: 30px;
    padding: 10px;
    cursor: pointer;
    width: fit-content;
    height: fit-content;
}

.bullet:hover {
    background: lightgray;
}

.tags {
    display: flex;
    flex-flow: wrap;
    gap: 10px;
}

.selected-bullet,
.selected-location,
.selected-final-location {
    background: var(--secondary-background) !important;
}

.assigned-bullet {
    background: orange;
}

.consignments-results {
    display: flex;
    margin-top: 25px;
    gap: 10px;
    flex-flow: wrap;
    overflow: auto;
    height: 50vh;
}

.file-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.file-link {
    background: white;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    position: relative;
}

.file-link a {
    width: 100px;
}

.file-link p {
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
}

.file-attachements {
    display: flex;
    flex-flow: wrap;
    gap: 10px;
}

.image-preview {
    width: 200px;
    height: 200px;
}

#consignment-allocate-previews-module {
    height: 40vh;
    overflow: auto;
}

@media (min-width: 1400px) {
    .consignments-results {
        height: 23vh;
    }

}

@media (max-width: 1024px) {
    #content {
        padding-left: 2vw;
        padding-top: 10vh;
    }

    header {
        width: 100vw;
        height: fit-content;
        padding: 20px;
    }

    header button,
    header a {
        font-size: xx-large;
    }

    .login-form {
        width: 85vw;
    }

    .side-panel {
        width: 90vw;
        padding-top: 90px;
    }

    .side-panel-hide {
        right: -110vw;
    }

    .side-panel-wide-hide {
        right: -155vw;
    }

    input {
        height: 40px;
        padding: 10px;
        font-size: 40px;
    }

    .show-mobile {
        display: flex;
    }

    .hide-mobile {
        display: none;
    }

    .popup-modal {
        max-height: 90vh;
        min-height: 90vh;
    }

    #consignment-allocate-previews-module .bullet {
        min-width: fit-content;
    }

    #consignment-allocate-previews-module {
        height: 15vh;
    }

    .hamburger-menu {
        height: 90vh;
        background: white;
        flex-direction: column;
        gap: 40px;
        padding: 20px;
        width: 60vw;
        box-shadow: var(--shadow);
        border-radius: 20px;
        top: 150px;
        position: fixed;
        z-index: 10;
    }

    .file-link,
    .file-link a {
        width: 200px;
    }

    .bullet {
        font-size: 30px;
    }

    select {
        height: 100px;
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    #consignment-allocate-previews-module {
        height: 60vh !important;
    }
}

.tiny-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 22px;
    width: 22px;
    padding: 0 6px;

    font-size: 12px;
    font-weight: 500;
    line-height: 1;

    border-radius: 6px;
    border: 1px solid #d1d5db;
    /* neutral gray */
    background: #f9fafb;
    color: #374151;

    cursor: pointer;
    user-select: none;
    white-space: nowrap;

    transition:
        background 120ms ease,
        border-color 120ms ease,
        box-shadow 120ms ease,
        transform 80ms ease;
}

.tiny-button:hover {
    background: #eef2ff;
    /* subtle indigo hint */
    border-color: #c7d2fe;
}

.tiny-button:active {
    transform: translateY(1px);
}

.tiny-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.35);
}

/* visually distinguish the "+" */
.tiny-button.is-add {
    font-weight: 600;
}

/* optional: make Copy slightly wider */
.tiny-button.is-copy {
    padding: 0 8px;
}

.role-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px
}

.chip {
    background: #f3f4f6;
    border-radius: 999px;
    padding: 4px 10px;
    display: flex;
    gap: 8px;
    align-items: center;
    max-width: 100%
}

.chip a {
    text-decoration: none;
}

.assign-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap
}

.muted {
    color: #6b7280
}

/* Floating full-screen / compact toggle */
#ui-compact-toggle{
  position: fixed;
  bottom: 12px;
  right: 12px;
  width: 52px;
  height: 52px;
  z-index: 9999;
  cursor: pointer;
  user-select: none;
}

#ui-compact-toggle img{
  width: 100%;
  height: 100%;
  display: block;
}

/* Compact UI mode (hide header + sidebar, shrink content padding) */
body.ui-compact header{
  display: none !important;
}

body.ui-compact #sidebar{
  display: none !important;
}

body.ui-compact #content{
  padding-left: 2vw !important;
  padding-top: 2vh !important;
  padding-right: 2vw;
  padding-bottom: 2vh;
}

.wb-drop-target {
  outline: 3px dashed rgba(20, 120, 255, 0.6);
  outline-offset: 6px;
}

.wb-dragging {
  opacity: 0.35;
}

.wb-placeholder {
  background: rgba(0,0,0,0.02);
}
