﻿
/* ======================================================================
  Account listing
====================================================================== */

.b-account {
    border: 1px solid #ddd;
    padding: 6px 12px 6px 12px;
    background-color: #f5f5f5;
    font-size: 13px;
    margin-bottom: 14px;
}

.b-account h4 {
    font-weight: bold;
    display: inline;
}

.b-account-rep {
    display: inline;
    margin-left: 10px;
    background-color: #999;
    color: #fff;
    padding: 0px 4px;
    border-radius: 4px;
    font-size: 10px;
}

.b-account-created {
    color: #888;
}

.firmwareVersionDetails {
    font-size: 11px;
}

.m-markasread, .m-markallasread {
    font-size: 11px;
}

.m-date {
    font-size: 12px;
}

div.message {
    margin-top: 20px;
}

.success-message {
    color: #40833e;
    margin-bottom: 20px;
    font-weight: bold;
    border: 1px solid #a9c09e;
    padding: 4px 8px;
    background: #cae6be;
}

a.delete-link {
    color: #f00;
}

a.delete-link-inactive {
    color: #cc7777;
}

.delete-link-inactive-notes {
    font-size: 11px;
    font-style: italic;
    line-height: normal;
}

@media only screen and (max-width: 768px) {
    .delete-location-link {
        margin-top: 15px;
    }

    .delete-link-inactive-notes {
        margin-top: 5px;
    }
}

#add-form {
    font-size: 11px;
}

.b-add-device {
    border: 1px solid #ddd;
    padding: 6px 12px 16px 12px;
    background-color: #f5f5f5;
}

.apan-table tr td, 
.lpcu-table tr td, 
.firmware-table tr td,
.controller-table tr td {
    padding: 3px 3px 2px 10px;
}

.admin-devices-table tr td,
.firmware-table tr td {
    vertical-align: top;
    padding-top: 5px !important;
}

.lpcu-name, .controller-name {
    font-weight: 600;
    font-size: 18px;
}

.lpcu-desc, .controller-desc {
    margin-left: 10px;
    font-size: 12px;
}

tr#no-lpcu-row td, tr#no-controller-row td {
    padding: 6px 12px;
    text-align: center;
}

tr.lpcu-edit-row td, tr.controller-edit-row td {
    padding: 8px 6px 18px 6px;
}

form.edit-lpcu-form #smart-id div {
    font-size: 18px;
    font-weight: 600;
}

.apan-edit-cancel,
.lpcu-edit-cancel {
    margin-left: 12px;
}


/*****************************************************************/
/**** Hardware Tab table handling for small form factors - Begin */
/*****************************************************************/

@media only screen and (max-width: 768px) {

    div#GatewayHardware div.hw-details {
        background-color: #fff;
    }

    /* Force table to not be like tables anymore */
	table.hw-tab-table, 
    table.hw-tab-table thead, 
    table.hw-tab-table tbody, 
    table.hw-tab-table th, 
    table.hw-tab-table td, 
    table.hw-tab-table tr:not(.apan-edit-row) { 
		display: block; 
	}

    /* Hide table headers (but not display: none;, for accessibility) */
	table.hw-tab-table thead tr { 
		position: absolute !important;
		top: -9999px !important;
		left: -9999px !important;
	}

    table.hw-tab-table tr {
        border: 1px solid #ccc !important;
    }

    table.hw-tab-table tr:nth-of-type(odd) {
        background: #fafafa;
    }
	
	table.hw-tab-table td:not(.apan-edit-form):not(.lpcu-edit-cell):not(#no-lpcus-cell)  { 
		/* Behave  like a "row" */
		border: none !important;
		border-bottom: 1px solid #eee !important; 
        border-left: 1px solid #eee !important; 
		position: relative !important;
		padding-left: 45% !important;
	    text-align: left !important;
	    min-height: 33px !important;
	}
	
	table.hw-tab-table td:before { 
		/* Now like a table header */
		position: absolute !important;
		/* Top/left values mimic padding */
		top: 6px !important;
		left: 6px !important;
		width: 40% !important; 
		padding-right: 10px !important; 
		white-space: nowrap !important;
	    border-right: 1px solid #eee;
	}

	/* Column headers for Controllers table */
	table.controller-table td:nth-of-type(1):before { content: "Controller"; }
	table.controller-table td:nth-of-type(2):before { content: "FW Ver"; }
	table.controller-table td:nth-of-type(3):before { content: "Description"; }
	table.controller-table td:nth-of-type(4):before { content: "Status"; }
	table.controller-table td:nth-of-type(5):before { content: ""; }

    /* Column headers for Wireless Realys */
    table.apan-table tr:not(.apan-edit-row) td:nth-of-type(1):before { content: "Lighting PIN"; }
	table.apan-table td:nth-of-type(2):before { content: "Dawn Offset (min)"; }
	table.apan-table td:nth-of-type(3):before { content: "Dusk Offset (min)"; }
	table.apan-table td:nth-of-type(4):before { content: "Adjust for DST"; }
	table.apan-table td:nth-of-type(5):before { content: ""; }

    table.apan-table td:before {
        width: 50% !important; 
    }

    table.hw-tab-table.apan-table td:not(.apan-edit-form):not(.lpcu-edit-cell):not(#no-lpcus-cell)  { 
        padding-left: 55% !important;
    }

    table.apan-table form.edit-apan-form {
        margin-right: -15px;
    }

    /* Column headers for LPCU table */
	table.lpcu-table td:nth-of-type(1):not(.lpcu-edit-cell):not(#no-lpcus-cell):before { content: "ID"; }
	table.lpcu-table td:nth-of-type(2):before { content: "EVO-AR/LPCU"; }
	table.lpcu-table td:nth-of-type(3):before { content: "FW Ver"; }
	table.lpcu-table td:nth-of-type(4):before { content: "Scene"; }
	table.lpcu-table td:nth-of-type(5):before { content: "Status"; }
    table.lpcu-table td:nth-of-type(6):before { content: ""; }

    /* Place Smart Id label and value on one line and adjust formatting for edit mode */
    td.lpcu-edit-cell div#smart-id label,
    td.lpcu-edit-cell div#smart-id div {
        display: inline-block;
    }

    /* Add colon after Smart Id label for edit mode */
    td.lpcu-edit-cell div#smart-id label:after {content: ":"}

    /* Add a bit of spacing since we are now placing controls inline */
    td.lpcu-edit-cell div#smart-id div {
        margin-left: 5px;
        font-weight: normal;
    }
}

/*****************************************************************/
/**** Hardware Tab table handling for small form factors - End ***/
/*****************************************************************/


/*****************************************************************/
/**** Admin Devices handling for small form factors - Begin */
/*****************************************************************/

table.admin-devices-table th {
    padding: 0 !important;
    text-align: center !important;
}

@media only screen and (max-width: 980px) {
    /* Force table to not be like tables anymore */
	table.admin-devices-table, 
    table.admin-devices-table thead, 
    table.admin-devices-table tbody, 
    table.admin-devices-table th, 
    table.admin-devices-table td, 
    table.admin-devices-table tr { 
		display: block;
	}

    /* Hide table headers (but not display: none;, for accessibility) */
	table.admin-devices-table thead tr { 
		position: absolute !important;
		top: -9999px !important;
		left: -9999px !important;
	}

    table.admin-devices-table tr {
        border: 1px solid #ccc !important;
    }

    table.admin-devices-table tr:nth-of-type(odd) {
        background: #fafafa;
    }

	table.admin-devices-table td { 
		/* Behave  like a "row" */
		border: none !important;
		border-bottom: 1px solid #eee !important; 
        border-left: 1px solid #eee !important; 
		position: relative !important;
		padding-left: 45% !important;
	    text-align: left !important;
	    min-height: 33px !important;
	}
	
	table.admin-devices-table td:before { 
		/* Now like a table header */
		position: absolute !important;
		/* Top/left values mimic padding */
		top: 6px !important;
		left: 6px !important;
		width: 40% !important; 
		padding-right: 10px !important; 
		white-space: pre-wrap !important;
	    border-right: 1px solid #eee;
	}

    table.admin-devices-table td div {
	    word-wrap: break-word;
	    word-break: break-all;
	    max-width: 100%;
    }

    /* Column headers for Admin Devices table */
	table.admin-devices-table tr:nth-child(2n-1) td:nth-of-type(1):before { content: "Device Id"; }
    table.admin-devices-table tr:nth-child(2n) td { padding-left: 0 !important; width:100% }
	table.admin-devices-table td:nth-of-type(2):before { content: "Device Type"; }
	table.admin-devices-table td:nth-of-type(3):before { content: "Name"; }
	table.admin-devices-table td:nth-of-type(4):before { content: "Last Checked"; }
	table.admin-devices-table td:nth-of-type(5):before { content: "UID"; }
    table.admin-devices-table td:nth-of-type(6):before { content: "FW/HW/Boot"; }
    table.admin-devices-table td:nth-of-type(7):before { content: "Account"; }
    table.admin-devices-table td:nth-of-type(8):before { content: "Log-History"; }
}

/* Override bootstrap button classes*/
table.admin-devices-table button,
table.admin-devices-table button  {
    width: 40%;
    padding: 0
}

@media only screen and (max-width: 980px) {
    table.admin-devices-table button,
    table.admin-devices-table button  {
        width: 20%;
        padding: 0
    }
}

/*****************************************************************/
/**** Admin Devices table handling for small form factors - End ***/
/*****************************************************************/


/*****************************************************************/
/**** Admin Devices - Log and History - handling for small form factors - Begin */
/*****************************************************************/

@media only screen and (max-width: 980px) {
    /* Force table to not be like tables anymore */
	table.admin-devices-table table.log-history-table, 
    table.admin-devices-table table.log-history-table thead, 
    table.admin-devices-table table.log-history-table tbody, 
    table.admin-devices-table table.log-history-table th, 
    table.admin-devices-table table.log-history-table td, 
    table.admin-devices-table table.log-history-table tr { 
		display: block;
	}

    /* Hide table headers (but not display: none;, for accessibility) */
	table.admin-devices-table table.log-history-table thead tr { 
		position: absolute !important;
		top: -9999px !important;
		left: -9999px !important;
	}

    table.admin-devices-table table.log-history-table tr {
        border: 1px solid #ccc !important;
    }

    table.admin-devices-table table.log-history-table tr:nth-of-type(odd) {
        background: #fafafa;
    }
	
	table.admin-devices-table table.log-history-table td { 
		/* Behave  like a "row" */
		border: none !important;
		border-bottom: 1px solid #eee !important; 
        border-left: 1px solid #eee !important; 
		position: relative !important;
		padding-left: 45% !important;
	    text-align: left !important;
	    min-height: 33px !important;
	}
	
	table.admin-devices-table table.log-history-table td:before { 
		/* Now like a table header */
		position: absolute !important;
		/* Top/left values mimic padding */
		top: 6px !important;
		left: 6px !important;
		width: 40% !important; 
		padding-right: 10px !important; 
		white-space: pre-wrap !important;
	    border-right: 1px solid #eee;
	}

    table.admin-devices-table table.log-history-table td div {
	    word-wrap: break-word;
	    word-break: break-all;
	    max-width: 100%;
    }

    /* Column headers for Admin Devices table */
	table.admin-devices-table table.log-history-table td:nth-of-type(1):before { content: "#"; }
	table.admin-devices-table table.log-history-table td:nth-of-type(2):before { content: "Raw Log Data"; }
	table.admin-devices-table table.log-history-table td:nth-of-type(3):before { content: "Date"; }
	table.admin-devices-table table.log-history-table td:nth-of-type(4):before { content: "Error"; }
}

/*****************************************************************/
/**** Admin Devices - Log and History - handling for small form factors - End ***/
/*****************************************************************/