/* Milligram overrides */
:root {
    /* The following are official CakePHP colors */
    --color-cakephp-red: #d33c43;
    --color-cakephp-gray: #404041;
    --color-cakephp-blue: #2f85ae;
    --color-cakephp-lightblue: #34bdd7;

    /* These are additional colors */
    --color-lightgray: #606c76;
    --color-white: #fff;

    --color-main-bg: #f5f7fa;
    --color-links: var(--color-cakephp-blue);
    --color-links-active: #2a6496;
    --color-headings: #363637;

    --color-message-success-bg: #e3fcec;
    --color-message-success-text: #1f9d55;
    --color-message-success-border: #51d88a;

    --color-message-warning-bg: #fffabc;
    --color-message-warning-text: #8d7b00;
    --color-message-warning-border: #d3b800;

    --color-message-error-bg: #fcebea;
    --color-message-error-text: #cc1f1a;
    --color-message-error-border: #ef5753;

    --color-message-info-bg: #eff8ff;
    --color-message-info-text: #2779bd;
    --color-message-info-border: #6cb2eb;
}

.button, button, input[type='button'], input[type='reset'], input[type='submit'] {
    background-color: var(--color-cakephp-red);
    border-color: var(--color-cakephp-red);
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    background: var(--color-main-bg);
}

.top-nav-links,
.side-nav,
h1, h2, h3, h4, h5, h6 {
    font-family: "Raleway", sans-serif;

}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    color: var(--color-headings);
}

a {
    color: var(--color-links);
    transition: color 0.2s linear;
}

a:hover,
a:focus,
a:active {
    color: var(--color-links-active);
    transition: color 0.2s ease-out;
}


.top-nav-links a,
th a,
.actions a {
    color: var(--color-lightgray);
}


.actions a:hover,
.actions a:focus {
    color: var(--color-links-active);
}

/* Utility */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Main */
.content {
    padding: 2rem;
    background: var(--color-white);
    border-radius: 0.4rem;
    /* Thanks Stripe */
    box-shadow: 0 7px 14px 0 rgba(60, 66, 87, 0.1),
        0 3px 6px 0 rgba(0, 0, 0, 0.07);
}
.content form {
    margin: auto;
    max-width: 600px; 
}
.actions a {
    font-weight: bold;
    padding: 0 0.4rem;
}
.actions a:first-child {
    padding-left: 0;
}
th {
    white-space: nowrap;
}

/* Nav bar */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*max-width: 112rem;*/
    padding: 2rem;
    margin: 0 auto;
}
.top-nav-title a {
    font-size: 2.4rem;
    color: var(--color-cakephp-red);
}
.top-nav-title span {
    color: var(--color-cakephp-gray);
}
.top-nav-links a {
    margin: 0 0.5rem;
}
.top-nav-title a,
.top-nav-links a {
    font-weight: bold;
    align-items: center;

    
    border-radius: 5;

    /* animation css */
    transition: font-size ease-in-out .1s;
  
    /* GPU hack for smoothing */
    /*transform: translateZ(0);
    will-change: transform;*/
}

.top-nav-links a:hover{
    
    color: var(--color-cakephp-red);
    /*font-size: 110%;*/
    
    
}

.side-nav a{
    font-weight: bold;
    background-color: var(--color-main-bg);

    align-items: center;

    /* animation css */
    transition: font-size ease-in-out .1s;
  
    /* GPU hack for smoothing */
    /*transform: translateZ(0);*/
    /*will-change: transform;*/
}

.side-nav a:hover{
    /*font-size: 102%;*/
    /*color: black;*/

}
.side-nav a:focus{
    font-size: 97%;
}

.side-nav a{
    color: var(--color-cakephp-red);
    background-color: transparent;
    
}

.side-nav-item {
    /*display: block;*/
    background-color: var(--color-message-error-bg);
    border-radius: 0.5em;
    margin: 0em;
    margin-bottom: 0.2em;
}

.side-nav-item a {
    display: block; /* Macht das <a> zum Block-Element */
    width: 100%; /* Deckt die gesamte Breite des <li> ab */
    padding: 1rem;
}

.side-nav-item a:hover,
.side-nav-item:hover {
    color: black;
}

.side-nav-item:hover {
    background-image: linear-gradient(to right, rgba(255,0,0,0), var(--color-cakephp-red));

}

/* View action */
.view.content .text {
    margin-top: 1.2rem;
}
.related {
    margin-top: 2rem;
}

/* Flash messages */
.message {
    padding: .5rem 1rem;
    background: var(--color-message-info-bg);
    color: var(--color-message-info-text);
    border-color: var(--color-message-info-border);
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    margin-bottom: 1rem;
    cursor: pointer;
}
.message.hidden {
    display: none;
}
.message.success {
    background: var(--color-message-success-bg);
    color: var(--color-message-success-text);
    border-color: var(--color-message-success-border);
}
.message.warning {
    background: var(--color-message-warning-bg);
    color: var(--color-message-warning-text);
    border-color: var(--color-message-warning-border);
}
.message.error {
    background: var(--color-message-error-bg);
    color: var(--color-message-error-text);
    border-color: var(--color-message-error-border);
}

/* Forms */
.input.radio,
.input.checkbox,
.input.multicheckbox {
    margin-bottom: 2.0rem;
}
.input.radio input,
.input.checkbox input,
.input.multicheckbox input {
    margin: 0;
}
.input.radio label,
.input.checkbox label,
.input.multicheckbox label {
    margin: 0;
    display: flex;
    align-items: center;
}
.input.radio label > input,
.input.checkbox label > input,
.input.multicheckbox label > input {
    margin-right: 1.0rem;
}
input[type='color'] {
    max-width: 4rem;
    padding: 0.3rem .5rem 0.3rem;
}

/* Paginator */
.paginator {
    text-align: right;
}
.paginator p {
    margin-bottom: 0;
}
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0 0 1rem 0;
    padding: 0;
}
.pagination li {
    display: inline-block;
    margin: 0.25em;
    text-align: center;
}
.pagination a {
    color: var(--color-cakephp-blue);
    display: inline-block;
    font-size: 1.25rem;
    line-height: 3rem;
    min-width: 3rem;
    padding: 0;
    position: relative;
    text-decoration: none;
    transition: background .3s,color .3s;
}
.pagination li.active a,
.pagination a:hover {
    text-decoration: underline;
}
.pagination .disabled a {
    cursor: not-allowed;
    color: var(--color-lightgray);
    text-decoration: none;
}
.first a,
.prev a,
.next a,
.last a {
    padding: 0 .75rem;
}
.disabled a:hover {
    background: initial;
    color: initial;
}
.asc:after {
    content: " \2193";
}
.desc:after {
    content: " \2191";
}

/* Error in non debug mode */
.error-container {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
}

@media screen and (max-width: 640px) {
    /* Fix milligram not having a responsive column system */
    .row .column[class*='column-'] {
        flex: 0 0 100%;
        max-width: 100%
    }
    .top-nav {
        margin: 0 auto;
    }
    .side-nav {
        margin-bottom: 1rem;
    }
    .heading {
        margin-bottom: 1rem;
    }
    .side-nav-item {
        display: inline;
        margin: 0 1.5rem 0 0;
    }
    .asc:after {
        content: " \2192";
    }
    .desc:after {
        content: " \2190";
    }
}

.addproduct-container {
    background-color: #eee;
}

/* Styling für fokussierte Formularelemente */
.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0rem rgba(0, 123, 255, 0.25);
}

/* Styling für sekundäre Buttons im Fokus */
.btn-secondary:focus {
    box-shadow: 0 0 0 0rem rgba(108, 117, 125, 0.5);
}

/* Styling für den Fokus auf das Schließen-Symbol */
.close:focus {
    box-shadow: 0 0 0 0rem rgba(108, 117, 125, 0.5);
}

/* Margin-Utility-Klasse */
.mt-200 {
    margin-top: 200px;
}


.custom-modal {
    max-width: 50%;  /* Breite auf 80% des Viewports setzen */
}

.clickable-row {
    cursor: pointer;
    transition: background 0.2s;
    padding: 3px;
    
}
.clickable-row:hover {
    background: #f5f5f5;
    border-radius: 5px;

}




.investment-index {
    width: 100%;
    margin: 20px auto;
}

.investment-view {
    width: 60%;
    margin: 20px auto;
    border: 2px solid #ccc;
    border-radius: 5px;
    padding: 10px;
}

/* Überschrift (Header) ähnlich wie Tabellenkopf */
.investment-header {
    display: flex;
    
    font-weight: bold;
    padding: 10px;
}
.header-col {
    flex: 1;
    text-align: left;
}

/* Card-Styling */
.investment-card {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: move; /* zeigt an, dass die Karte verschiebbar ist */
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.investment-card-content {
    display: flex;
    width: 100%;
}

.card-col {
    flex: 1;
    text-align: left;
    padding: 0 10px;
    
}


/* Footer-Bereich für Buttons */
.card-footer {
    padding: 3px;
    
    
    display: flex;
    justify-content: flex-end;
    gap: 3px;
}



/* Platzhalter-Styling für sortierbare Elemente */
.ui-state-highlight {
    height: 60px; /* anpassen an die Höhe deiner Cards */
    background-color: #d9edf7;
    border: 1px dashed #bce8f1;
    margin: 10px 0;
}


.nav-link{
    color: gray;
    align-content: center;
}

.nav-link:hover{
    background: #f5f5f5;
}

.nav-item{
    border-radius: 5px;
}

.card{
    margin-bottom: 10px;
}

.file-container {
    width: 50%;
    margin: 20px auto; /* Zentriert das div horizontal */
    border: 2px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    background-color: #f9f9f9;
    text-align: center;
}

.application-link {
    color: var(--color-cakephp-gray);
}

.selected {
    border-color: var(--color-cakephp-gray);
    background-color: #f8f8f8;
    border: 2px solid;
}

tr.locked-row {
    background-color: #d3d3d3 !important; /* Light gray background */
    color: #000 !important; /* Black text color */
}

.custom-margin {
    margin-left: 10px; /* Abstand nach rechts */
}

.table{
    width: 100%;
}



/* */

.table-custom-edu {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    font-family: Arial, sans-serif;
}

.table-custom-edu th, 
.table-custom-edu td {
    border-bottom: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.table-custom-edu th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.table-custom-edu tr:hover {
    background-color: #f1f1f1;
}

.table-custom-edu a {
    color: #007bff;
    /*text-decoration: none;*/
}

.table-custom-edu a:hover {
    text-decoration: underline;
}

.priority-card {
    color: #007bff;
    /*text-decoration: none;*/
}

.priority-card:hover {
    text-decoration: underline;
}


table.form-table th {
    text-align: left;
    vertical-align: top;
    padding-right: 1rem;
}
table.form-table td {
    padding-bottom: 1rem;
}
